14 lines
365 B
TypeScript
14 lines
365 B
TypeScript
import { httpRouter } from "convex/server";
|
|
import { auth } from "./auth";
|
|
|
|
// 说明:
|
|
// - Convex Auth 需要通过 HTTP Routes 提供回调/授权等端点(即使你只用密码登录,也建议保持该配置)。
|
|
// - 该文件是 Convex 的约定入口(convex/http.ts)。
|
|
|
|
const http = httpRouter();
|
|
|
|
auth.addHttpRoutes(http);
|
|
|
|
export default http;
|
|
|