refactor: migrate authentication from Supabase to Better Auth and update Prisma schema models
This commit is contained in:
9
apps/backend/src/modules/auth/auth.routes.ts
Normal file
9
apps/backend/src/modules/auth/auth.routes.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Hono } from "hono";
|
||||
import { auth } from "@/lib/auth";
|
||||
import { AppEnv } from "@/types/hono";
|
||||
|
||||
export const authRoutes = new Hono<AppEnv>();
|
||||
|
||||
authRoutes.on(["POST", "GET"], "/api/auth/*", (c) => {
|
||||
return auth.handler(c.req.raw);
|
||||
});
|
||||
Reference in New Issue
Block a user