Rename registration routes

This commit is contained in:
Girish Ramakrishnan
2019-05-05 13:00:45 -07:00
parent 22be3ad948
commit 20a2f56184
7 changed files with 111 additions and 182 deletions

View File

@@ -137,10 +137,6 @@ function initializeExpressSync() {
router.get ('/api/v1/cloudron/eventlog', cloudronScope, routes.eventlog.list);
router.get ('/api/v1/cloudron/eventlog/:eventId', cloudronScope, routes.eventlog.get);
// subscription routes
router.post('/api/v1/subscription', subscriptionScope, routes.subscription.subscribeCloudron);
router.get ('/api/v1/subscription', subscriptionScope, routes.subscription.getSubscription);
// tasks
router.get ('/api/v1/tasks', settingsScope, routes.tasks.list);
router.get ('/api/v1/tasks/:taskId', settingsScope, routes.tasks.get);
@@ -217,7 +213,9 @@ function initializeExpressSync() {
router.del ('/api/v1/clients/:clientId/tokens', clientsScope, routes.clients.delTokens);
router.del ('/api/v1/clients/:clientId/tokens/:tokenId', clientsScope, routes.clients.delToken);
// appstore routes
// appstore and subscription routes
router.post('/api/v1/appstore/register_cloudron', subscriptionScope, routes.appstore.registerCloudron);
router.get ('/api/v1/appstore/subscription', subscriptionScope, routes.appstore.getSubscription);
router.get ('/api/v1/appstore/apps', appstoreScope, routes.appstore.getApps);
router.get ('/api/v1/appstore/apps/:appstoreId', appstoreScope, routes.appstore.getApp);
router.get ('/api/v1/appstore/apps/:appstoreId/versions/:versionId', appstoreScope, routes.appstore.getAppVersion);