Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/Attendance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Header from "./components/Header";
import InputBlock from "./components/InputBlock";
import AttendanceWeekInfo from "./components/AttendanceWeekInfo";
import styles from "./Attendance.module.css";
import axios from "axios";
import api from "./api/api";

const Attendance = () => {
const [attendanceCode, setAttendanceCode] = useState([""]);
Expand Down Expand Up @@ -88,7 +88,7 @@ const Attendance = () => {
if (!userId) return;

// 유저 전체 출석 데이터 불러오기
const res = await axios.get(`/api/attendance/user`, {
const res = await api.get(`/attendance/user`, {
params: { userId },
withCredentials: true, // 세션 기반 인증 요청처리
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const loginUser = async ({ name, password }) => {
const res = await fetch("http://www.pirocheck.org/login/login", {
const res = await fetch("http://www.pirocheck.org/api/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down