From 7ea2160c9bee27424978a0bb0c063f8c1b10337a Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 26 Apr 2023 21:58:15 +0000 Subject: [PATCH] fix /api/version --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 5d2b541..03e8476 100644 --- a/main.js +++ b/main.js @@ -19,7 +19,7 @@ app.use(morgan("combined")); app.get("/api/version", (req, res) => { - res.status(200).send({version: _version}); + res.status(200).send({version: api.version}); }); app.get("/api/echo", (req, res) => {