add route to query apps specific to user

it's not nice to overload a route to mean different things depending
on who queries it.
This commit is contained in:
Girish Ramakrishnan
2018-04-26 20:07:03 -07:00
parent e0da6679e9
commit a7bb5d6b5c
2 changed files with 15 additions and 2 deletions
+1
View File
@@ -127,6 +127,7 @@ function initializeExpressSync() {
router.get ('/api/v1/cloudron/eventlog', cloudronScope, routes.user.requireAdmin, routes.eventlog.get);
// working off the user behind the provided token
router.get ('/api/v1/user/apps', profileScope, routes.apps.getAllByUser);
router.get ('/api/v1/user/profile', profileScope, routes.profile.get);
router.post('/api/v1/user/profile', profileScope, routes.profile.update);
router.post('/api/v1/user/profile/password', profileScope, routes.user.verifyPassword, routes.profile.changePassword);