Add specific user profile routes

This commit is contained in:
Johannes Zellner
2016-04-17 16:22:39 +02:00
parent 5c1970b37f
commit a7d22a1972
3 changed files with 85 additions and 1 deletions
+3 -1
View File
@@ -96,7 +96,9 @@ function initializeExpressSync() {
// feedback
router.post('/api/v1/cloudron/feedback', usersScope, routes.cloudron.feedback);
router.get ('/api/v1/profile', profileScope, routes.user.profile);
router.get ('/api/v1/profile', profileScope, routes.profile.get);
router.put ('/api/v1/profile', profileScope, routes.profile.update);
router.put ('/api/v1/profile/password', profileScope, routes.profile.changePassword);
// user routes only for admins
router.get ('/api/v1/users', usersScope, routes.user.requireAdmin, routes.user.list);