BaseRequestScheduler -> AbstractRequestScheduler
[oweals/peertube.git] / server / controllers / api / config.ts
1 import * as express from 'express'
2
3 import { CONFIG } from '../../initializers'
4
5 const configRouter = express.Router()
6
7 configRouter.get('/', getConfig)
8
9 // Get the client credentials for the PeerTube front end
10 function getConfig (req: express.Request, res: express.Response, next: express.NextFunction) {
11   res.json({
12     signup: {
13       enabled: CONFIG.SIGNUP.ENABLED
14     }
15   })
16 }
17
18 // ---------------------------------------------------------------------------
19
20 export {
21   configRouter
22 }