From e9ffd1857fa03d06f8887f15c831c6cfea1044c7 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 22 May 2020 19:33:40 -0700 Subject: [PATCH] Rename the /stats page to /admin We're about to change this to not only report statistics, but to also allow the admin to perform administrative functions (such as deleting games). So give the page a better name for that. --- lmno.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lmno.js b/lmno.js index ff66a9b..7468736 100644 --- a/lmno.js +++ b/lmno.js @@ -211,8 +211,8 @@ app.post('/login', async (request, response) => { return; }); -/* A stats page (only available to admin users) */ -app.get('/stats/', auth_admin, (request, response) => { +/* An admin page (only available to admin users, of course) */ +app.get('/admin/', auth_admin, (request, response) => { let active = 0; let idle = 0; -- 2.43.0