diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-31 10:19:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-31 10:19:34 +0100 |
commit | 915c5bbe538769b1d3430b27817d6a861c766ef3 (patch) | |
tree | 9200deffc7d1a83eed52a01b6fb3755776c51ca9 /server/controllers | |
parent | c8cf5952f3be2dd64016c10dfe1825a6de1ec39b (diff) | |
download | PeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.tar.gz PeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.tar.zst PeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.zip |
Add version in footer
Diffstat (limited to 'server/controllers')
-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 | }, |