mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
First typescript iteration
This commit is contained in:
parent
d5f345ed4c
commit
65fcc3119c
113 changed files with 1961 additions and 1784 deletions
22
server/controllers/api/config.ts
Normal file
22
server/controllers/api/config.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue