mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-01 11:56:43 -05:00
12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
import { createAPIFileRoute } from "@tanstack/start/api";
|
|
import { auth } from "~/lib/auth";
|
|
|
|
export const Route = createAPIFileRoute("/api/auth/$")({
|
|
GET: ({ request }) => {
|
|
return auth.handler(request);
|
|
},
|
|
POST: ({ request }) => {
|
|
return auth.handler(request);
|
|
},
|
|
});
|