14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
import { NextResponse } from 'next/server';
|
|
import { createRoom, toPublicRoom } from '@/lib/rooms/store';
|
|
|
|
export const runtime = 'nodejs';
|
|
|
|
/** 치지직·채팅 연동 없이 수동 굴림 룸 생성 */
|
|
export async function POST(_request: Request) {
|
|
const room = createRoom({
|
|
chzzkEnabled: false,
|
|
});
|
|
|
|
return NextResponse.json({ room: toPublicRoom(room), reused: false });
|
|
}
|