system: return uptime and reboot required
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user