Metamigo -> Bridge
This commit is contained in:
parent
242f3cf6b8
commit
a445762a37
145 changed files with 396 additions and 16668 deletions
|
|
@ -0,0 +1 @@
|
|||
export { receiveMessages as GET } from "@/app/_lib/routing";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { registerBot as POST } from "@/app/_lib/routing";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { requestCode as POST } from "@/app/_lib/routing";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { resetBot as POST } from "@/app/_lib/routing";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { getOneBot as GET } from "@/app/_lib/routing";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { sendMessage as POST } from "@/app/_lib/routing";
|
||||
1
apps/bridge-frontend/app/api/[service]/bots/route.ts
Normal file
1
apps/bridge-frontend/app/api/[service]/bots/route.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { getAllBots as GET } from "@/app/_lib/routing";
|
||||
8
apps/bridge-frontend/app/api/[service]/webhooks/route.ts
Normal file
8
apps/bridge-frontend/app/api/[service]/webhooks/route.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { NextRequest, NextResponse } from "next/server";
|
||||
|
||||
const handleRequest = async (req: NextRequest, res: NextResponse) => {
|
||||
|
||||
return NextResponse.json({ message: "ok" });
|
||||
};
|
||||
|
||||
export { handleRequest as GET, handleRequest as POST };
|
||||
6
apps/bridge-frontend/app/api/auth/[...nextauth]/route.ts
Normal file
6
apps/bridge-frontend/app/api/auth/[...nextauth]/route.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import NextAuth from "next-auth";
|
||||
import { authOptions } from "@/app/_lib/authentication";
|
||||
|
||||
const handler = NextAuth(authOptions);
|
||||
|
||||
export { handler as GET, handler as POST };
|
||||
Loading…
Add table
Add a link
Reference in a new issue