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/pages/admin/AttendanceCode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const AttendanceCode = () => {
// 출석코드 생성
const generateCode = async () => {
try {
const res = await api.post("/attendance/start");
const res = await api.post("admin/attendance/start");
const newCode = res.data.data.code;
setCode(newCode);
} catch (error) {
Expand All @@ -22,7 +22,7 @@ const AttendanceCode = () => {
// 출석코드 만료
const expireCode = async () => {
try {
const res = await api.put("/attendance/expire-latest");
const res = await api.put("admin/attendance/expire-latest");
alert(res.data.message || "출석코드가 만료되었습니다");
setCode("");
} catch (error) {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/admin/AttendanceCode.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
justify-content: center;
align-items: center;
margin-top: 60px;
gap: 20px;
}