mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-16 01:35:41 +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);
|
|
};
|