Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { NextRequest } from "next/server";
|
||||
import { serveThumb } from "@/lib/api/serveAssets";
|
||||
|
||||
export const runtime = "nodejs";
|
||||
|
||||
export async function GET(req: NextRequest) {
|
||||
const p = new URL(req.url).searchParams.get("p");
|
||||
if (!p) return new Response("not found", { status: 404 });
|
||||
return serveThumb(p);
|
||||
}
|
||||
Reference in New Issue
Block a user