1
0
forked from PGL/Clyde

manage Course finished

This commit is contained in:
2024-03-18 14:51:27 +01:00
parent 92079c5a47
commit 0871d2971d
27 changed files with 22 additions and 19 deletions

View File

@ -11,7 +11,6 @@ export async function restPost(endPoint, data) {
return await _rest(endPoint, {method: "POST", credentials: 'include', body: JSON.stringify(data)});
}
export async function restPostFile(endPoint, file){
let headers = new Headers();
return await _rest(endPoint, {method: "POST", credentials: 'include', body: file, headers: headers });
@ -25,10 +24,6 @@ export async function restPatch(endPoint, data) {
return await _rest(endPoint, {method: "PATCH", credentials: 'include', body: JSON.stringify(data)});
}
export async function restPatchInfo(endPoint, data){
return await _rest(endPoint, {method: "PATCH", credentials: 'include', body: data});
}
/**
* backbone for the request made by the frontend
*