Revert "add get route for user"
This route is already there, the reason is, that the users api works off the :userId but the profile api works off the req.user coming from the used access token. This reverts commit dbef4d71be5a68239133ab9b6e0fc1fd88ee27cd.
This commit is contained in:
@@ -101,7 +101,6 @@ function initializeExpressSync() {
|
||||
// user routes only for admins
|
||||
router.get ('/api/v1/users', usersScope, routes.user.requireAdmin, routes.user.list);
|
||||
router.post('/api/v1/users', usersScope, routes.user.requireAdmin, routes.user.create);
|
||||
router.get ('/api/v1/users/:userId', usersScope, routes.user.requireAdmin, routes.user.profile);
|
||||
router.del ('/api/v1/users/:userId', usersScope, routes.user.requireAdmin, routes.user.verifyPassword, routes.user.remove);
|
||||
router.put ('/api/v1/users/:userId/set_groups', usersScope, routes.user.requireAdmin, routes.user.setGroups);
|
||||
router.post('/api/v1/users/:userId/invite', usersScope, routes.user.requireAdmin, routes.user.sendInvite);
|
||||
|
||||
Reference in New Issue
Block a user