fix: rename API routes

This commit is contained in:
Nathan Lamy 2026-02-24 23:57:02 +01:00
parent a2fce34a87
commit fadf68152d

View file

@ -92,12 +92,12 @@ export const getStudentMatch = async (
classId: string classId: string
) => { ) => {
return makeRequest( return makeRequest(
`/api/match-student?firstName=${firstName}&lastName=${lastName}&classId=${classId}` `/users/match-student?firstName=${firstName}&lastName=${lastName}&classId=${classId}`
); );
}; };
export const mergeStudent = async (studentId: string) => { export const mergeStudent = async (studentId: string) => {
return makePostRequest("/api/merge-student", { pastStudentId: studentId }); return makePostRequest("/users/merge-student", { pastStudentId: studentId });
}; };
/** /**