1 import * as express from 'express'
3 import { isSignupAllowed } from '../../helpers'
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) {
13 isSignupAllowed().then(allowed => {
14 const json: ServerConfig = {
23 // ---------------------------------------------------------------------------