Add duplicate profile route for compat with old apps using oauth addon

This commit is contained in:
Girish Ramakrishnan
2018-05-03 09:28:47 -07:00
parent 616e38189c
commit d18d1a977a

View File

@@ -131,6 +131,7 @@ function initializeExpressSync() {
// working off the user behind the provided token
router.get ('/api/v1/user/apps', profileScope, routes.apps.getAllByUser);
router.get ('/api/v1/user/cloudron_config', profileScope, routes.user.getCloudronConfig);
router.get ('/api/v1/profile', profileScope, routes.profile.get); // duplicate route for compatibility
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.users.verifyPassword, routes.profile.changePassword);