aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/controllers/api/config.js
blob: 8154b6ad0e85cea3c5145ecc9c77139e04cf7e38 (plain) (tree)





















                                                                              
'use strict'

const express = require('express')

const constants = require('../../initializers/constants')

const router = express.Router()

router.get('/', getConfig)

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

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

module.exports = router