aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/controllers/api/config.ts
blob: 8bdde61b38f08ab9276f957c15d062f51fba6329 (plain) (tree)
1
2
3

                                   
                                           


















                                                                              
import express = require('express')

import { CONFIG } from '../../initializers'

const configRouter = express.Router()

configRouter.get('/', getConfig)

// Get the client credentials for the PeerTube front end
function getConfig (req, res, next) {
  res.json({
    signup: {
      enabled: CONFIG.SIGNUP.ENABLED
    }
  })
}

// ---------------------------------------------------------------------------

export {
  configRouter
}