Files

20 lines
555 B
TypeScript
Raw Permalink Normal View History

import { NextResponse } from "next/server";
import { getBoothConfig, getBoothStyles } from "@/lib/config";
export async function GET() {
const config = getBoothConfig();
const styles = getBoothStyles();
// Return public safe configuration (omit any secret internal options)
return NextResponse.json({
appName: config.appName,
kioskMode: config.kioskMode,
theme: config.theme,
camera: config.camera,
features: config.features,
limits: config.limits,
kiosk: config.kiosk,
labels: config.labels,
styles,
});
}