Fix dashboard config not getting generated

This commit is contained in:
Girish Ramakrishnan
2023-08-13 21:36:56 +05:30
parent a7be30a816
commit 2b53ea0260
4 changed files with 15 additions and 13 deletions
+1 -1
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.prepareLocation);
router.post('/api/v1/dashboard/location', json, token, authorizeAdmin, routes.dashboard.changeLocation);
router.post('/api/v1/dashboard/location', json, token, authorizeAdmin, routes.dashboard.setupLocation);
// system (vm/server)
router.get ('/api/v1/system/reboot', token, authorizeAdmin, routes.system.isRebootRequired);