version in index

This commit is contained in:
Daniël 2024-06-09 15:54:01 +02:00
parent d197601248
commit 659ec674e8

View file

@ -3,6 +3,8 @@ const express = require("express");
const fileRoutes = require("./routes/file.routes"); const fileRoutes = require("./routes/file.routes");
const helmet = require("helmet"); const helmet = require("helmet");
const { version } = require("./config/version.config");
const app = express(); const app = express();
const port = process.env.PORT; const port = process.env.PORT;
const hosterEmail = process.env.HOSTER_EMAIL; const hosterEmail = process.env.HOSTER_EMAIL;
@ -51,6 +53,7 @@ app.get("/", async (req, res) => {
totalUploads: totalUploads, totalUploads: totalUploads,
totalSize: kbToMB.toFixed(2), totalSize: kbToMB.toFixed(2),
hosterEmail: hosterEmail, hosterEmail: hosterEmail,
version: version,
}); });
}); });