Nearly finish
Some checks failed
Build and test backend / Build-backend (pull_request) Failing after 1m31s
Build and test backend / Test-backend (pull_request) Failing after 1m31s
Build and test FrontEnd / Build-frontend (pull_request) Failing after 20s

This commit is contained in:
2024-03-18 17:28:14 +01:00
parent c35f675a11
commit 25c5c1b018
6 changed files with 67 additions and 71 deletions

View File

@ -1,4 +1,4 @@
import { restGet, restPost, restPatch} from './restConsumer.js'
import { restGet, restPost, restPatch, restDelete} from './restConsumer.js'
import { getCookie, setCookie } from '@/utils.js'
export async function login(user, pass, exp){
@ -143,3 +143,9 @@ export async function getSelf(){
export async function alterSelf(data){
return restPatch("/user", data);
}
export async function deleteUser(id){
return restDelete("/user/" + id)
}

View File

@ -43,3 +43,8 @@ export async function getcurriculum(id){
export async function altercurriculum(id, courses){
return restPatch("/curriculum/" + id, courses);
}
export async function getSelfCurriculum(){
return restGet("/curriculum");
}