mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 22:11:39 +00:00
8 lines
260 B
TypeScript
8 lines
260 B
TypeScript
|
|
import { httpRouter } from "convex/server"
|
||
|
|
import { authComponent, createAuth } from "./auth"
|
||
|
|
|
||
|
|
const http = httpRouter()
|
||
|
|
// CORS handling is required for client side frameworks
|
||
|
|
authComponent.registerRoutes(http, createAuth, { cors: true })
|
||
|
|
export default http
|