blob: 8f3fa24736ab02bf65d0e77741bc5653c015f559 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import express = require('express')
import { CONFIG } from '../../initializers';
const configRouter = express.Router()
configRouter.get('/', getConfig)
// Get the client credentials for the PeerTube front end
function getConfig (req, res, next) {
res.json({
signup: {
enabled: CONFIG.SIGNUP.ENABLED
}
})
}
// ---------------------------------------------------------------------------
export {
configRouter
}
|