better naming of the dashboard functions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user