mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 21:21:21 +00:00
feat(backend): add tRPC with Hono adapter
- Add @trpc/server, @hono/trpc-server, zod dependencies - Create tRPC context with BetterAuth session - Create router with publicProcedure and protectedProcedure - Mount tRPC at /trpc/* via Hono adapter Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
5
apps/aris-backend/src/trpc/router.ts
Normal file
5
apps/aris-backend/src/trpc/router.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { router } from "./trpc.ts"
|
||||
|
||||
export const appRouter = router({})
|
||||
|
||||
export type AppRouter = typeof appRouter
|
||||
Reference in New Issue
Block a user