mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-18 15:27:52 +00:00
15 lines
342 B
TypeScript
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([]);
|
|
}
|
|
}
|