mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 11:10:11 +08:00
feat: init trpc
This commit is contained in:
1 parent
8cc006e3a4
commit
6326b84a60
6 files changed
+44
-1
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { initTRPC } from '@trpc/server'
|
||||
/**
|
||||
* Initialization of tRPC backend
|
||||
* Should be done only once per backend!
|
||||
*/
|
||||
const t = initTRPC.create()
|
||||
/**
|
||||
* Export reusable router and procedure helpers
|
||||
* that can be used throughout the router
|
||||
*/
|
||||
export const { router, procedure: publicProcedure } = t
|
||||
Reference in new issue
Block a user