mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2026-02-04 19:07:41 +00:00
Vacancy added
This commit is contained in:
9
app/api/vacancies/route.ts
Normal file
9
app/api/vacancies/route.ts
Normal file
@ -0,0 +1,9 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user