aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-31 10:19:34 +0100
committerChocobozzz <me@florianbigard.com>2018-01-31 10:19:34 +0100
commit915c5bbe538769b1d3430b27817d6a861c766ef3 (patch)
tree9200deffc7d1a83eed52a01b6fb3755776c51ca9 /server/controllers/api
parentc8cf5952f3be2dd64016c10dfe1825a6de1ec39b (diff)
downloadPeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.tar.gz
PeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.tar.zst
PeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.zip
Add version in footer
Diffstat (limited to 'server/controllers/api')
-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 },