diff options
Diffstat (limited to 'index.ts')
-rw-r--r-- | index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ import nodeOS from "os"; const app = express(); const PORT = 52937; +const pkg = require('../package.json'); async function refresh() { // Gives the info for this server @@ -62,7 +63,7 @@ app.get("/json", async (req, res) => { version: os.release !== "unknown" ? os.release : os.kernel }, uptime: uptime, - version: "1.2.0" + version: pkg.version }); }); |