new graph on main page

This commit is contained in:
Luke Berndt
2024-09-02 21:57:56 -04:00
parent 79d0297f7c
commit 0683b93e0c
5 changed files with 284 additions and 67 deletions

View File

@@ -95,6 +95,10 @@ function addSystemClients(req, res, next) {
next();
}
function addTotalClients(req, res, next) {
req.totalClients = clients.length;
next();
}
/*------ CALLS ----------*/
@@ -135,7 +139,7 @@ app.get('/events/:id', events.getEvent);
/*------ STATS ----------*/
app.get('/:shortName/stats', stats.get_stats);
app.get('/stats', sys_stats.siteStats)
app.get('/stats', addTotalClients, sys_stats.siteStats)
function get_clients(req, res) {