crash fixes

This commit is contained in:
Girish Ramakrishnan
2023-08-17 13:02:36 +05:30
parent 3d0ba557e5
commit 5c98b6f080
5 changed files with 26 additions and 14 deletions

View File

@@ -117,7 +117,7 @@ async function initializeExpressSync() {
// 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_location', json, token, authorizeAdmin, routes.dashboard.startPrepareLocation);
router.post('/api/v1/dashboard/location', json, token, authorizeAdmin, routes.dashboard.setupLocation);
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);