Refactoring
This commit is contained in:
parent
39cfada3e8
commit
dd14dfe72e
41 changed files with 866 additions and 742 deletions
|
|
@ -1 +0,0 @@
|
|||
export { registerBot as POST } from "@/app/_lib/routing";
|
||||
|
|
@ -1 +0,0 @@
|
|||
export { requestCode as POST } from "@/app/_lib/routing";
|
||||
|
|
@ -1 +0,0 @@
|
|||
export { resetBot as POST } from "@/app/_lib/routing";
|
||||
|
|
@ -1 +0,0 @@
|
|||
export { getAllBots as GET } from "@/app/_lib/routing";
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { NextRequest } from "next/server";
|
||||
import { handleWebhook } from "@/app/_lib/routing";
|
||||
|
||||
const handleRequest = async (req: NextRequest, res: NextResponse) => {
|
||||
|
||||
return NextResponse.json({ message: "ok" });
|
||||
};
|
||||
const handleRequest = async (req: NextRequest) => handleWebhook(req);
|
||||
|
||||
export { handleRequest as GET, handleRequest as POST };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue