system: return uptime and reboot required

This commit is contained in:
Girish Ramakrishnan
2023-12-04 00:46:12 +01:00
parent 72083f59cd
commit eb64bd296a
4 changed files with 16 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ async function initializeExpressSync() {
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);
router.get ('/api/v1/system/info', token, authorizeAdmin, routes.system.getInfo);
router.post('/api/v1/system/reboot', json, token, authorizeAdmin, routes.system.reboot);
router.get ('/api/v1/system/graphs', token, authorizeAdmin, routes.system.getSystemGraphs);
router.get ('/api/v1/system/disks', token, authorizeAdmin, routes.system.getDisks);