Skip to content

Commit ba00de9

Browse files
authored
Merge pull request #155 from pirogramming/main
학생 출석axios -> api
2 parents 0357077 + 9769d38 commit ba00de9

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

frontend/src/pages/admin/AttendanceCode.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ const AttendanceCode = () => {
1919
console.log("기존 출석코드 자동 만료됨");
2020
} catch (error) {
2121
if (error.response?.status !== 404) {
22-
alert(
23-
"초기화 중 오류: " + (error.response?.data?.message || "서버 오류")
24-
);
22+
return;
2523
}
2624
}
2725
};

frontend/src/pages/generation/Attendance.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const Attendance = () => {
152152

153153
// 유저가 입력한 출석 코드 서버에 전달(서버에서 출석코드 체크)
154154

155-
const res = await axios.post(
155+
const res = await api.post(
156156
"/api/attendance/mark",
157157

158158
{

0 commit comments

Comments
 (0)