mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
add system status
This commit is contained in:
@@ -107,7 +107,6 @@ function addSystemClients(req, res, next) {
|
||||
}
|
||||
|
||||
function addTotalClients(req, res, next) {
|
||||
|
||||
req.totalClients = Object.keys(clients).length;
|
||||
next();
|
||||
}
|
||||
@@ -153,6 +152,9 @@ app.get('/events/:id', events.getEvent);
|
||||
app.get('/:shortName/stats', stats.get_stats);
|
||||
app.get('/stats', addTotalClients, sys_stats.siteStats)
|
||||
|
||||
/*------ SYSTEM STATUS ----------*/
|
||||
app.get('/status/:shortName', systems.get_system_status);
|
||||
|
||||
|
||||
function get_clients(req, res) {
|
||||
if (req.params.shortName) {
|
||||
|
||||
Reference in New Issue
Block a user