From 047b3e72aa78ab17fd3f11c20327635552066dcf Mon Sep 17 00:00:00 2001 From: qkrxogmla Date: Mon, 19 May 2025 11:04:53 +0900 Subject: [PATCH] =?UTF-8?q?=20url=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/admin/AttendanceCode.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/admin/AttendanceCode.jsx b/frontend/src/pages/admin/AttendanceCode.jsx index 79e0002..9b9dde0 100644 --- a/frontend/src/pages/admin/AttendanceCode.jsx +++ b/frontend/src/pages/admin/AttendanceCode.jsx @@ -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) { @@ -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) {