Add the display for unregister requests

Rename all ocurrences of uninscription
to unregister
Rework the uninscriptionRequest so we have an history and it doesn't take an user so better security
This commit is contained in:
LeoMoulin committed 2024-04-15 20:13:01 +02:00
1 parent a89d1b192c
commit c434b28fe3
8 files changed
+162 -98

No files matched your search

+5 -1
View File
@@ -21,7 +21,7 @@ export async function editEquivalenceState(id, newstate){
}
export async function addUninscReq(userId, reason){
return restPost("/uninscriptionreq", {"userId" : userId, "reason" : reason})
return restPost("/unregister", {"userId" : userId, "reason" : reason})
}
export async function editScholarshipReq(body){
@@ -30,4 +30,8 @@ export async function editScholarshipReq(body){
export async function getScholarshipReqById(id){
return restGet("/scholarshipreq/"+id)
}
export async function getAllUnregisters(){
return restGet("/unregister")
}