add slider-photo api
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-19 11:26:33 +01:00
parent f2b62f29ba
commit 80337ff874
+14
View File
@@ -0,0 +1,14 @@
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([]);
}
}