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