mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00: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);
|
|
},
|
|
});
|