]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/controllers/api/config.ts
Use global uuid instead of remoteId for videos
[github/Chocobozzz/PeerTube.git] / server / controllers / api / config.ts
CommitLineData
4d4e5cd4 1import * as express from 'express'
65fcc311 2
e02643f3 3import { CONFIG } from '../../initializers'
154898b0 4import { ServerConfig } from '../../../shared'
65fcc311
C
5
6const configRouter = express.Router()
7
8configRouter.get('/', getConfig)
9
10// Get the client credentials for the PeerTube front end
69818c93 11function getConfig (req: express.Request, res: express.Response, next: express.NextFunction) {
154898b0 12 const json: ServerConfig = {
65fcc311
C
13 signup: {
14 enabled: CONFIG.SIGNUP.ENABLED
15 }
154898b0
C
16 }
17 res.json(json)
65fcc311
C
18}
19
20// ---------------------------------------------------------------------------
21
22export {
23 configRouter
24}