mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
updated nextjs example with app router
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { getApp } from "@/bknd";
|
||||
|
||||
const handler = async (request: Request) => {
|
||||
const app = await getApp();
|
||||
return app.fetch(request);
|
||||
};
|
||||
|
||||
export const GET = handler;
|
||||
export const POST = handler;
|
||||
export const PUT = handler;
|
||||
export const PATCH = handler;
|
||||
export const DELETE = handler;
|
||||
Reference in New Issue
Block a user