aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/config.ts')
-rw-r--r--server/controllers/api/config.ts2
1 files changed, 2 insertions, 0 deletions
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
8import { customConfigUpdateValidator } from '../../middlewares/validators/config' 8import { customConfigUpdateValidator } from '../../middlewares/validators/config'
9import { omit } from 'lodash' 9import { omit } from 'lodash'
10 10
11const packageJSON = require('../../../../package.json')
11const configRouter = express.Router() 12const configRouter = express.Router()
12 13
13configRouter.get('/', 14configRouter.get('/',
@@ -38,6 +39,7 @@ async function getConfig (req: express.Request, res: express.Response, next: exp
38 .map(r => parseInt(r, 10)) 39 .map(r => parseInt(r, 10))
39 40
40 const json: ServerConfig = { 41 const json: ServerConfig = {
42 serverVersion: packageJSON.version,
41 signup: { 43 signup: {
42 allowed 44 allowed
43 }, 45 },