Move the update info into separate route (since it is sensitive)

This commit is contained in:
Girish Ramakrishnan
2018-06-28 17:43:20 -07:00
parent cab9bc3a61
commit 35c9e99102
4 changed files with 6 additions and 2 deletions
+1
View File
@@ -118,6 +118,7 @@ function initializeExpressSync() {
router.post('/api/v1/developer/login', routes.developer.login);
// 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/check_for_updates', cloudronScope, routes.cloudron.checkForUpdates);
router.post('/api/v1/cloudron/reboot', cloudronScope, routes.cloudron.reboot);