improve slider
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-28 23:01:17 +01:00
parent 48ff3359ab
commit d1f06cb9d5
10 changed files with 191 additions and 129 deletions
+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([]);
}
}