From 0b8c8f8b457ebed6fcadf6618daf48b13467fa48 Mon Sep 17 00:00:00 2001 From: Andrew Marcuse Date: Sat, 23 Dec 2023 10:46:12 -0500 Subject: [PATCH] UPDATE: re-added targetCount to status.json (inadvertantly deleted) --- src/server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 037e8ba..1b684e7 100644 --- a/src/server.ts +++ b/src/server.ts @@ -109,7 +109,8 @@ rootRouter.get('/status.json', async (ctx) => { retVal["lastmod"] = process.env.LASTMOD || null; retVal["commit"] = process.env.COMMIT || null; retVal["tech"] = "NodeJS " + process.version; - + retVal["targetcount"] = sites.getAll().length; + sendJSON(ctx, retVal); });