]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/controllers/api/config.ts
57c9398ecaafbd57a326b9ee02887fa5ca160dc2
[github/Chocobozzz/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, res, next) {
11 res.json({
12 signup: {
13 enabled: CONFIG.SIGNUP.ENABLED
14 }
15 })
16 }
17
18 // ---------------------------------------------------------------------------
19
20 export {
21 configRouter
22 }