1
0
forked from PGL/Clyde

Nearly finish

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)
}