Files
oms-website-nextjs/app/api/vacancies/route.ts
2025-04-27 08:51:09 +02:00

10 lines
367 B
TypeScript

import { NextResponse } from "next/server";
import { demoVacancies } from "@/lib/demo-data/vacancies";
export async function GET() {
// In a real application, you would fetch this data from your CMS (Directus)
// For now, we use the demo data
const openVacancies = demoVacancies.filter((v) => v.status === "Open");
return NextResponse.json(openVacancies);
}