Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/apps/web/app/routes/b.$tenant.$slug.embed.tsx
T
2026-07-08 16:15:37 +02:00

21 lines
875 B
TypeScript

// AK-P16b · iframe embed variant `/b/{tenant}/{slug}/embed` (M06 Block H). Same
// loader/action as the canonical page; the loader detects `/embed` and drops the
// branding chrome. The permissive frame-ancestors header makes it embeddable on any
// tenant website (the page exposes only published, public booking data).
import { publicBookingLoader, publicBookingAction } from "~/modules/booking/routes/PublicBooking.server";
import PublicBookingRoute from "~/modules/booking/components/PublicBookingRoute";
import ServerError from "~/components/ui/errors/ServerError";
export function headers(): Record<string, string> {
return { "Content-Security-Policy": "frame-ancestors *" };
}
export const loader = publicBookingLoader;
export const action = publicBookingAction;
export default PublicBookingRoute;
export function ErrorBoundary() {
return <ServerError />;
}