refactor code to allow admin domain to be set

This commit is contained in:
Girish Ramakrishnan
2018-12-07 16:15:21 -08:00
parent 3aea1f3c9d
commit 515ee891d3
5 changed files with 45 additions and 47 deletions

View File

@@ -121,6 +121,7 @@ function initializeExpressSync() {
// cloudron routes
router.get ('/api/v1/cloudron/update', cloudronScope, routes.cloudron.getUpdateInfo);
router.post('/api/v1/cloudron/update', cloudronScope, routes.cloudron.update);
router.post('/api/v1/cloudron/set_admin', cloudronScope, routes.cloudron.setAdmin);
router.post('/api/v1/cloudron/check_for_updates', cloudronScope, routes.cloudron.checkForUpdates);
router.get ('/api/v1/cloudron/reboot', cloudronScope, routes.cloudron.isRebootRequired);
router.post('/api/v1/cloudron/reboot', cloudronScope, routes.cloudron.reboot);