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