2026-04-13 00:46:58 -06:00
|
|
|
import { NextResponse } from "next/server";
|
|
|
|
|
import { getModDetails } from "@/lib/mods";
|
|
|
|
|
|
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
|
|
|
|
|
|
export async function GET() {
|
|
|
|
|
try {
|
|
|
|
|
const mods = getModDetails();
|
2026-04-13 00:59:10 -06:00
|
|
|
return NextResponse.json(mods, {
|
|
|
|
|
headers: { "Cache-Control": "public, max-age=10" },
|
|
|
|
|
});
|
2026-04-13 00:46:58 -06:00
|
|
|
} catch (e) {
|
|
|
|
|
return NextResponse.json(
|
|
|
|
|
{ error: (e as Error).message },
|
|
|
|
|
{ status: 500 }
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|