1
0
Fork 0

feat(org): Added admin subscribers page

This commit is contained in:
joostdecock 2024-03-23 15:50:24 +01:00
parent 71b57adaf7
commit f1e407d789
3 changed files with 157 additions and 18 deletions

View file

@ -597,6 +597,14 @@ Backend.prototype.adminImpersonateUser = async function (id) {
return responseHandler(await api.get(`/admin/impersonate/${id}/jwt`, this.auth))
}
/*
* Load newsletter subscribers (admin method)
*/
Backend.prototype.adminLoadSubscribers = async function () {
console.log(this.auth)
return responseHandler(await api.get(`/admin/subscribers/jwt`, this.auth))
}
/*
* Verify an admin account while impersonating another user
*/