From d26b3b98ba82cca90d982d8b8dbed381a17ee28e Mon Sep 17 00:00:00 2001 From: 0d0acre <0d0acre@esiliati.org> Date: Sat, 21 Sep 2024 02:38:06 +0200 Subject: [PATCH] [hotfix] Maybe its a fix --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); }); };