Files

10 lines
429 B
TypeScript

// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
// Better Auth's routes on this deployment's site URL. A browser never calls them directly: the app's
// same-origin proxy (apps/web/app/api/auth) forwards the few a browser needs.
import { httpRouter } from "convex/server"
import { authComponent, createAuth } from "./auth"
const http = httpRouter()
authComponent.registerRoutes(http, createAuth)
export default http