mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-13 07:53:17 +00:00
Move delete user method in users package
This commit is contained in:
app
settings
static
js
Requests
templates
users
15
app/static/js/Requests/users/users.js
Normal file
15
app/static/js/Requests/users/users.js
Normal file
@ -0,0 +1,15 @@
|
||||
/*****************************************************************************
|
||||
* Users *
|
||||
* Fetch requests for /users routes *
|
||||
*****************************************************************************/
|
||||
Requests.users = {};
|
||||
|
||||
Requests.users.entity = {};
|
||||
|
||||
Requests.settings.entity.delete = (userId) => {
|
||||
let input = `/users/${userId}`;
|
||||
let init = {
|
||||
method: 'DELETE'
|
||||
};
|
||||
return Requests.JSONfetch(input, init);
|
||||
};
|
Reference in New Issue
Block a user