Add duplicate profile route for compat with old apps using oauth addon
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user