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