Add API to set and transfer ownership

This commit is contained in:
Girish Ramakrishnan
2018-06-28 16:48:04 -07:00
parent ff5bd42bef
commit 9978dff627
6 changed files with 111 additions and 3 deletions
+2
View File
@@ -149,6 +149,7 @@ function initializeExpressSync() {
router.post('/api/v1/users/:userId', usersManageScope, routes.users.update);
router.put ('/api/v1/users/:userId/groups', usersManageScope, routes.users.setGroups);
router.post('/api/v1/users/:userId/invite', usersManageScope, routes.users.sendInvite);
router.post('/api/v1/users/:userId/transfer', usersManageScope, routes.users.transferOwnership);
// Group management
router.get ('/api/v1/groups', usersReadScope, routes.groups.list);
@@ -208,6 +209,7 @@ function initializeExpressSync() {
router.post('/api/v1/apps/:id/clone', appsManageScope, routes.apps.cloneApp);
router.get ('/api/v1/apps/:id/download', appsManageScope, routes.apps.downloadFile);
router.post('/api/v1/apps/:id/upload', appsManageScope, multipart, routes.apps.uploadFile);
router.post('/api/v1/apps/:id/owner', appsManageScope, routes.apps.setOwner);
// settings routes (these are for the settings tab - avatar & name have public routes for normal users. see above)
router.get ('/api/v1/settings/app_autoupdate_pattern', settingsScope, routes.settings.getAppAutoupdatePattern);