Split dashboard dns setup and db operations

The dns setup is now a task that we can wait on. Once that task
is done, we can do db operations to switch the domain in a separate
route
This commit is contained in:
Girish Ramakrishnan
2018-12-14 09:57:28 -08:00
parent 357e44284d
commit bdf9671280
8 changed files with 53 additions and 70 deletions
+1
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_dashboard_dns', cloudronScope, routes.cloudron.setDashboardDns);
router.post('/api/v1/cloudron/set_dashboard_domain', cloudronScope, routes.cloudron.setDashboardDomain);
router.post('/api/v1/cloudron/renew_certs', cloudronScope, routes.cloudron.renewCerts);
router.post('/api/v1/cloudron/check_for_updates', cloudronScope, routes.cloudron.checkForUpdates);