Add admin site settings sections and locale defaults

This commit is contained in:
MOH
2026-03-15 04:06:33 +01:00
parent 3e9edc5873
commit 5d3f77962a
21 changed files with 993 additions and 456 deletions
+20
View File
@@ -0,0 +1,20 @@
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",
},
},
);
}