working ish version one with rooms, thx to claude
This commit is contained in:
7
src/app/api/room/create/route.ts
Normal file
7
src/app/api/room/create/route.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { createRoom } from '@/lib/rooms';
|
||||
|
||||
export async function POST() {
|
||||
const { code, moderatorId } = createRoom();
|
||||
return NextResponse.json({ code, moderatorId });
|
||||
}
|
||||
Reference in New Issue
Block a user