blob: 57c9398ecaafbd57a326b9ee02887fa5ca160dc2 (
plain) (
tree)
|
|
import * as express from '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
}
|