mirror of
https://github.com/ZeroCatDev/ClassworksKV.git
synced 2025-07-02 04:39:23 +00:00
Add /check
endpoint to app.js
for API status verification
This commit is contained in:
parent
28f6a6bc80
commit
fc066a88ff
7
app.js
7
app.js
@ -60,6 +60,13 @@ app.use((req, res, next) => {
|
|||||||
app.get("/", (req, res) => {
|
app.get("/", (req, res) => {
|
||||||
res.render("index.ejs", { readmeValue: getReadmeValue() });
|
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
|
// Mount the KV store router
|
||||||
app.use("/", kvRouter);
|
app.use("/", kvRouter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user