1 import * as express from 'express'
3 import { CONFIG } from '../../initializers'
4 import { ServerConfig } from '../../../shared'
6 const configRouter = express.Router()
8 configRouter.get('/', getConfig)
10 // Get the client credentials for the PeerTube front end
11 function getConfig (req: express.Request, res: express.Response, next: express.NextFunction) {
12 const json: ServerConfig = {
14 enabled: CONFIG.SIGNUP.ENABLED
20 // ---------------------------------------------------------------------------