This commit is contained in:
John Livingston 2021-04-30 16:48:16 +02:00
parent 1c0fbe743f
commit fbfd86aab0
2 changed files with 4 additions and 3 deletions

View File

@ -96,7 +96,7 @@ async function getProsodyConfig (options: RegisterServerOptions): Promise<Prosod
const roomApiUrl = options.peertubeHelpers.config.getWebserverUrl() +
getBaseRouter() +
'api/room?{room.jid|jid_node}'
'api/room?jid={room.jid|jid_node}'
const config = new ProsodyConfigContent(paths)
config.usePeertubeBosh(peertubeDomain, port)

View File

@ -23,8 +23,9 @@ async function initApiRouter (options: RegisterServerOptions): Promise<Router> {
const router = getRouter()
const logger = peertubeHelpers.logger
router.get('/room', async (_req: Request, res: Response, _next: NextFunction) => {
logger.info('Requesting room information for room ...')
router.get('/room', async (req: Request, res: Response, _next: NextFunction) => {
const jid: string = req.query.jid as string || ''
logger.info(`Requesting room information for room '${jid}'.`)
// TODO: check if room is legit and fill informations
const roomDefaults: RoomDefaults = {
name: 'name_of_the_room',