Nearly finish
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user