Files
message-inbox-web-frontend-sdk/apps/web/app/api/bff/bootstrap/route.ts
T
2026-07-17 21:48:37 +05:30

10 lines
313 B
TypeScript

import { NextResponse } from "next/server";
import { getBackend } from "@/lib/backend";
export const dynamic = "force-dynamic";
// GET /api/bff/bootstrap — the initial client payload (me, workspace, users, channels).
export async function GET() {
return NextResponse.json(await getBackend().bootstrap());
}