From: Carl Worth Date: Sat, 23 May 2020 02:33:40 +0000 (-0700) Subject: Rename the /stats page to /admin X-Git-Url: https://git.cworth.org/git?p=empires-server;a=commitdiff_plain;h=e9ffd1857fa03d06f8887f15c831c6cfea1044c7 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. --- 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;