The first commit, the core and all files is adding to repo
This commit is contained in:
11
app/api/v1/[...path]/route.ts
Normal file
11
app/api/v1/[...path]/route.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { NextRequest } from "next/server";
|
||||
import { handle } from "@/lib/api";
|
||||
export const runtime = "nodejs";
|
||||
export const dynamic = "force-dynamic";
|
||||
async function route(
|
||||
request: NextRequest,
|
||||
{ params }: { params: Promise<{ path: string[] }> },
|
||||
) {
|
||||
return handle(request, (await params).path);
|
||||
}
|
||||
export { route as GET, route as POST, route as PATCH, route as DELETE };
|
||||
Reference in New Issue
Block a user