12 lines
355 B
TypeScript
12 lines
355 B
TypeScript
import { toNextJsHandler } from "better-auth/next-js";
|
|
|
|
import { getAuth } from "@/lib/auth/server";
|
|
|
|
const handlers = toNextJsHandler((request) => getAuth().handler(request));
|
|
|
|
export const GET = handlers.GET;
|
|
export const POST = handlers.POST;
|
|
export const PATCH = handlers.PATCH;
|
|
export const PUT = handlers.PUT;
|
|
export const DELETE = handlers.DELETE;
|