Files
portfolio/app/api/messages/route.ts
denshooter b6eb24f2e8 feat: complete editorial overhaul with CMS dynamic labels
Centralized UI labels in Directus, integrated AI Chat and Status into Bento grid, created standalone Books page, and redesigned project sub-pages for consistent high-end aesthetic.
2026-02-16 01:11:06 +01:00

15 lines
448 B
TypeScript

import { NextRequest, NextResponse } from "next/server";
import { getMessages } from "@/lib/directus";
export async function GET(request: NextRequest) {
const { searchParams } = new URL(request.url);
const locale = searchParams.get("locale") || "en";
try {
const messages = await getMessages(locale);
return NextResponse.json({ messages });
} catch (error) {
return NextResponse.json({ messages: {} }, { status: 500 });
}
}