Files
sass-mohfarawati/app/api/site/default-locale/route.ts
T

21 lines
394 B
TypeScript

import { NextResponse } from "next/server";
import { getSiteSettings } from "@/lib/app-config";
export const dynamic = "force-dynamic";
export async function GET() {
const settings = await getSiteSettings();
return NextResponse.json(
{
defaultLocale: settings.defaultLocale,
},
{
headers: {
"Cache-Control": "no-store, max-age=0",
},
},
);
}