aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index 9649680..78be0cd 100644
--- a/index.ts
+++ b/index.ts
@@ -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
});
});