diff --git a/server/index.js b/server/index.js index feebeb2..f1497b6 100644 --- a/server/index.js +++ b/server/index.js @@ -1,6 +1,7 @@ const express = require("express"); const multer = require("multer"); const config = require("config"); +const { version } = require("./package.json"); const dbHandler = require("./dbHandler.js"); const upload = multer({ dest: config.get("app.upload") }); @@ -46,7 +47,6 @@ const configureRoutes = (app) => { }); app.get("/version", (req, res) => { - const { version } = require("./package.json"); res.json({ version }); }); };