- req.room = rooms.get(roomId);
- next();
- });
- /**
- * API GET resource that returns the mediasoup Router RTP capabilities of
- * the room.
- */
- expressApp.get(
- '/rooms/:roomId', (req, res) =>
- {
- const data = req.room.getRouterRtpCapabilities();
- res.status(200).json(data);
- });
- /**
- * POST API to create a Broadcaster.
- */
- expressApp.post(