mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/users: add user deletion
This commit is contained in:
@ -27,6 +27,11 @@ class Api {
|
||||
return this._process(fullUrl, () => request.put(fullUrl).send(data));
|
||||
}
|
||||
|
||||
delete(url, data) {
|
||||
const fullUrl = this.getFullUrl(url);
|
||||
return this._process(fullUrl, () => request.delete(fullUrl).send(data));
|
||||
}
|
||||
|
||||
_process(url, requestFactory) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let req = requestFactory();
|
||||
|
Reference in New Issue
Block a user