mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
20 lines
601 B
JavaScript
20 lines
601 B
JavaScript
/*****************************************************************************
|
|
* Requests for /admin routes *
|
|
*****************************************************************************/
|
|
Requests.admin = {};
|
|
|
|
Requests.admin.users = {};
|
|
|
|
Requests.admin.users.entity = {};
|
|
|
|
Requests.admin.users.entity.confirmed = {};
|
|
|
|
Requests.admin.users.entity.confirmed.update = (userId, value) => {
|
|
let input = `/admin/users/${userId}/confirmed`;
|
|
let init = {
|
|
method: 'PUT',
|
|
body: JSON.stringify(value)
|
|
};
|
|
return Requests.JSONfetch(input, init);
|
|
};
|