@@ -69,16 +69,16 @@ export async function setAttendanceOfStudent(
6969}
7070
7171export async function setPointsOfMultipleStudents ( points : Map < string , IGradingDTO > ) : Promise < void > {
72- // Timeout = 0 to prevent the request from timeouting .
73- const response = await axios . put ( 'student/ grading' , [ ...points ] , { timeout : 0 } ) ;
72+ // Timeout = 0 to prevent the request from running into a timeout .
73+ const response = await axios . put ( 'grading/multiple ' , [ ...points ] , { timeout : 0 } ) ;
7474
7575 if ( response . status !== 204 ) {
7676 return Promise . reject ( `Wrong status code (${ response . status } ).` ) ;
7777 }
7878}
7979
8080export async function setPointsOfStudent ( studentId : string , points : IGradingDTO ) : Promise < void > {
81- const response = await axios . put ( `student/${ studentId } /grading ` , points ) ;
81+ const response = await axios . put ( `grading/ student/${ studentId } ` , points ) ;
8282
8383 if ( response . status !== 204 ) {
8484 return Promise . reject ( `Wrong status code (${ response . status } ).` ) ;
@@ -100,7 +100,7 @@ export async function setExamPointsOfStudent(
100100 studentId : string ,
101101 points : IGradingDTO
102102) : Promise < void > {
103- const response = await axios . put ( `student/${ studentId } /grading ` , points ) ;
103+ const response = await axios . put ( `grading/ student/${ studentId } ` , points ) ;
104104
105105 if ( response . status !== 204 ) {
106106 return Promise . reject ( `Wrong response code (${ response . status } ).` ) ;
0 commit comments