♻️ (results) Introduce tRPC and use it for the results
This commit is contained in:
8
apps/builder/src/pages/api/trpc/[trpc].ts
Normal file
8
apps/builder/src/pages/api/trpc/[trpc].ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { createContext } from '@/utils/server/context'
|
||||
import { appRouter } from '@/utils/server/routers/_app'
|
||||
import { createNextApiHandler } from '@trpc/server/adapters/next'
|
||||
|
||||
export default createNextApiHandler({
|
||||
router: appRouter,
|
||||
createContext,
|
||||
})
|
||||
Reference in New Issue
Block a user