From 1bbb515200faf945ae51ab0567dd2af64d2ecf92 Mon Sep 17 00:00:00 2001 From: nai-degen Date: Mon, 8 Jan 2024 23:32:25 -0600 Subject: [PATCH] updates static service info --- src/server.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 6637ceb..d5ea002 100644 --- a/src/server.ts +++ b/src/server.ts @@ -65,7 +65,11 @@ app.get("/health", (_req, res) => res.sendStatus(200)); app.use(cors()); app.use(checkOrigin); -app.get("/", handleInfoPage); +if (config.staticServiceInfo) { + app.get("/", (_req, res) => res.sendStatus(200)); +} else { + app.get("/", handleInfoPage); +} app.get("/status", (req, res) => { res.json(buildInfo(req.protocol + "://" + req.get("host"), false)); });