Files
aris/apps/aelis-backend/src/auth/http.ts

8 lines
216 B
TypeScript
Raw Normal View History

import type { Hono } from "hono"
import type { Auth } from "./index.ts"
export function registerAuthHandlers(app: Hono, auth: Auth): void {
app.on(["POST", "GET"], "/api/auth/*", (c) => auth.handler(c.req.raw))
}