mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-18 15:27:52 +00:00
@@ -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([]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user