From fc066a88ff5a93a87b875d9d81abfa416097b908 Mon Sep 17 00:00:00 2001 From: SunWuyuan Date: Sat, 10 May 2025 21:53:16 +0800 Subject: [PATCH] Add `/check` endpoint to `app.js` for API status verification --- app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.js b/app.js index 14ad738..54774a9 100644 --- a/app.js +++ b/app.js @@ -60,6 +60,13 @@ app.use((req, res, next) => { app.get("/", (req, res) => { res.render("index.ejs", { readmeValue: getReadmeValue() }); }); +app.get("/check", (req, res) => { + res.json({ + status: "success", + message: "API is running", + time: new Date().getTime(), + }); +}); // Mount the KV store router app.use("/", kvRouter);