14 lines
438 B
TypeScript
14 lines
438 B
TypeScript
![]() |
import { NextResponse } from 'next/server'
|
||
|
|
||
|
export async function GET(request: Request) {
|
||
|
const { searchParams } = new URL(request.url)
|
||
|
const room = searchParams.get('room')
|
||
|
const identity = searchParams.get('identity')
|
||
|
|
||
|
const response = await fetch(
|
||
|
`https://generalbots.online/PROD-GeneralBots006/meeting-token?room=${room}&identity=${identity}`
|
||
|
)
|
||
|
const data = await response.json()
|
||
|
|
||
|
return NextResponse.json(data)
|
||
|
}
|