better naming of the dashboard functions

This commit is contained in:
Girish Ramakrishnan
2023-08-13 10:29:24 +05:30
parent e723c3c19b
commit a7be30a816
7 changed files with 55 additions and 60 deletions

View File

@@ -115,9 +115,9 @@ async function initializeExpressSync() {
router.post('/api/v1/cloudron/time_zone', json, token, authorizeAdmin, routes.cloudron.setTimeZone);
// config route for dashboard that any auth user (not just admin) can access
router.get ('/api/v1/dashboard/config', token, authorizeUser, routes.dashboard.getConfig);
router.post('/api/v1/dashboard/prepare_domain', json, token, authorizeAdmin, routes.dashboard.prepareDomain);
router.post('/api/v1/dashboard/switch_domain', json, token, authorizeAdmin, routes.dashboard.switchDomain);
router.get ('/api/v1/dashboard/config', token, authorizeUser, routes.dashboard.getConfig);
router.post('/api/v1/dashboard/prepare_location', json, token, authorizeAdmin, routes.dashboard.prepareLocation);
router.post('/api/v1/dashboard/location', json, token, authorizeAdmin, routes.dashboard.changeLocation);
// system (vm/server)
router.get ('/api/v1/system/reboot', token, authorizeAdmin, routes.system.isRebootRequired);