From 915c5bbe538769b1d3430b27817d6a861c766ef3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 31 Jan 2018 10:19:34 +0100 Subject: Add version in footer --- server/controllers/api/config.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/controllers') diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index f0b2c3d79..bc804d9ba 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts @@ -8,6 +8,7 @@ import { asyncMiddleware, authenticate, ensureUserHasRight } from '../../middlew import { customConfigUpdateValidator } from '../../middlewares/validators/config' import { omit } from 'lodash' +const packageJSON = require('../../../../package.json') const configRouter = express.Router() configRouter.get('/', @@ -38,6 +39,7 @@ async function getConfig (req: express.Request, res: express.Response, next: exp .map(r => parseInt(r, 10)) const json: ServerConfig = { + serverVersion: packageJSON.version, signup: { allowed }, -- cgit v1.2.3