Files
integration/website/src/pages/api/v1/services-local.json.ts
2025-04-17 17:27:58 +02:00

18 lines
409 B
TypeScript

import services from "@/data/services-local.json"
export async function GET() {
const response = new Response(
JSON.stringify(
services
.filter(({ enabled }) => !!enabled)
.map((service) => ({
id: service.id,
name: service.name,
url: service.url,
})),
),
)
response.headers.set("Content-Type", "application/json")
return response
}