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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user