Initial commit
This commit is contained in:
17
app/api/auth/[...route]/route.ts
Normal file
17
app/api/auth/[...route]/route.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { getAuth } from "@/lib/auth";
|
||||
import { NextRequest } from "next/server";
|
||||
|
||||
export const runtime = "nodejs";
|
||||
|
||||
async function handler(req: NextRequest) {
|
||||
const auth = await getAuth();
|
||||
return auth.handler(req);
|
||||
}
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
return handler(req);
|
||||
}
|
||||
|
||||
export async function GET(req: NextRequest) {
|
||||
return handler(req);
|
||||
}
|
||||
Reference in New Issue
Block a user