Files
tvone/app/api/slider-photos/route.ts
T
peter d1f06cb9d5
continuous-integration/drone/push Build is passing
improve slider
2026-03-28 23:01:17 +01:00

15 lines
342 B
TypeScript

import { NextResponse } from "next/server";
import { readSliderPhotos } from "@/lib/slider-photos";
export const runtime = "nodejs";
export const dynamic = "force-dynamic";
export async function GET() {
try {
const photos = readSliderPhotos();
return NextResponse.json(photos);
} catch {
return NextResponse.json([]);
}
}