mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-02-04 14:17:53 +01:00
feat: add file routing option
This commit is contained in:
10
examples/custom/server/trpc/routers/index.ts
Normal file
10
examples/custom/server/trpc/routers/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { router } from '../trpc'
|
||||
import { todoRouter } from './todo'
|
||||
import { userRouter } from './user'
|
||||
|
||||
export const appRouter = router({
|
||||
todo: todoRouter,
|
||||
user: userRouter
|
||||
})
|
||||
|
||||
export type AppRouter = typeof appRouter
|
||||
Reference in New Issue
Block a user