nopaque/app/static/js/requests/admin.js

20 lines
601 B
JavaScript
Raw Normal View History

2023-03-29 12:32:35 +00:00
/*****************************************************************************
2023-10-04 10:32:27 +00:00
* Requests for /admin routes *
2023-03-29 12:32:35 +00:00
*****************************************************************************/
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);
};