fix(GBMinService): add logging for meeting token requests and definition
All checks were successful
GBCI / build (push) Successful in 1m15s
All checks were successful
GBCI / build (push) Successful in 1m15s
This commit is contained in:
parent
3ce1d1e152
commit
c200456e38
1 changed files with 4 additions and 1 deletions
|
@ -568,15 +568,18 @@ export class GBMinService {
|
|||
})
|
||||
.bind(min);
|
||||
|
||||
GBLog.info(`Defining meeting. `);
|
||||
|
||||
GBServer.globals.server
|
||||
.all(`/${min.instance.botId}/meeting-token`, async (req, res) => {
|
||||
|
||||
try {
|
||||
// Add to your route handler
|
||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
|
||||
|
||||
// 1. Validate request
|
||||
const { room, identity, name } = req.query;
|
||||
GBLog.info(`Meeting token asked. ${room} ${identity} ${name}`);
|
||||
if (!room || !identity) {
|
||||
return res.status(400).json({ error: 'Missing required parameters: room, identity' });
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue