File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const fetchAssignmentsByUser = async (userId) => {
77*/
88export const fetchAssignmentsByUser = async ( userId ) => {
99 try {
10- const res = await api . get ( `/api/ assignment/${ userId } ` ) ;
10+ const res = await api . get ( `/assignment/${ userId } ` ) ;
1111 return res . data ; // 백엔드가 반환하는 JSON 그대로
1212 } catch ( err ) {
1313 console . error ( "과제 데이터 불러오기 실패:" , err ) ;
@@ -17,7 +17,7 @@ export const fetchAssignmentsByUser = async (userId) => {
1717
1818
1919export const submitAssignmentStatus = async ( userId , assignmentId , status ) => {
20- return api . post ( `/api/ admin/users/${ userId } /assignments/${ assignmentId } /submission` , {
20+ return api . post ( `/admin/users/${ userId } /assignments/${ assignmentId } /submission` , {
2121 assignmentId,
2222 userId,
2323 status,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import WeeklyOpenBlock from "../../components/WeeklyOpenBlock";
55import AssignmentInfoBlock from "../../components/AssignmentInfoBlock" ;
66import api from "../../api/api" ;
77import styles from "./AdminStudentAssignment.module.css" ;
8- import { submitAssignmentStatus , updateAssignmentStatus } from "../../api/assignments " ;
8+ import { submitAssignmentStatus , updateAssignmentStatus } from "../../api/assignment " ;
99
1010const AdminStudentAssignment = ( ) => {
1111 const { studentId, week } = useParams ( ) ;
You can’t perform that action at this time.
0 commit comments