mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
version in index
This commit is contained in:
parent
d197601248
commit
659ec674e8
1 changed files with 3 additions and 0 deletions
3
index.js
3
index.js
|
@ -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,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue