diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 2 |
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 | |||
8 | import { customConfigUpdateValidator } from '../../middlewares/validators/config' | 8 | import { customConfigUpdateValidator } from '../../middlewares/validators/config' |
9 | import { omit } from 'lodash' | 9 | import { omit } from 'lodash' |
10 | 10 | ||
11 | const packageJSON = require('../../../../package.json') | ||
11 | const configRouter = express.Router() | 12 | const configRouter = express.Router() |
12 | 13 | ||
13 | configRouter.get('/', | 14 | configRouter.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 | }, |