Add route to make user local

This commit is contained in:
Johannes Zellner
2022-04-24 22:11:27 +02:00
parent 0cd48bd239
commit 032218c0fd
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -183,6 +183,7 @@ function initializeExpressSync() {
router.post('/api/v1/users/:userId/send_password_reset_email', json, token, authorizeUserManager, routes.users.load, routes.users.sendPasswordResetEmail);
router.get ('/api/v1/users/:userId/invite_link', json, token, authorizeUserManager, routes.users.load, routes.users.getInviteLink);
router.post('/api/v1/users/:userId/send_invite_email', json, token, authorizeUserManager, routes.users.load, routes.users.sendInviteEmail);
router.post('/api/v1/users/:userId/make_local', json, token, authorizeUserManager, routes.users.load, routes.users.makeLocal);
// Group management
router.get ('/api/v1/groups', token, authorizeUserManager, routes.groups.list);