dnsSetup -> setup

It now takes a dnsConfig object. It will end up taking other config
objects for provisioning.
This commit is contained in:
Girish Ramakrishnan
2018-10-30 13:36:00 -07:00
parent 7c733ae150
commit 03984a811f
6 changed files with 155 additions and 179 deletions

View File

@@ -109,7 +109,7 @@ function initializeExpressSync() {
var csrf = routes.oauth2.csrf();
// public routes
router.post('/api/v1/cloudron/dns_setup', routes.setup.providerTokenAuth, routes.setup.dnsSetup); // only available until no-domain
router.post('/api/v1/cloudron/setup', routes.setup.providerTokenAuth, routes.setup.provision); // only available until no-domain
router.post('/api/v1/cloudron/restore', routes.setup.restore); // only available until activated
router.post('/api/v1/cloudron/activate', routes.setup.setupTokenAuth, routes.setup.activate);
router.get ('/api/v1/cloudron/status', routes.setup.getStatus);