mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-18 15:27:52 +00:00
@@ -1,14 +1,14 @@
|
|||||||
import { NextResponse } from "next/server";
|
// import { NextResponse } from "next/server";
|
||||||
import { readSliderPhotos } from "@/lib/slider-photos";
|
// import { readSliderPhotos } from "@/lib/slider-photos";
|
||||||
|
|
||||||
export const runtime = "nodejs";
|
// export const runtime = "nodejs";
|
||||||
export const dynamic = "force-dynamic";
|
// export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export async function GET() {
|
// export async function GET() {
|
||||||
try {
|
// try {
|
||||||
const photos = readSliderPhotos();
|
// const photos = readSliderPhotos();
|
||||||
return NextResponse.json(photos);
|
// return NextResponse.json(photos);
|
||||||
} catch {
|
// } catch {
|
||||||
return NextResponse.json([]);
|
// return NextResponse.json([]);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user