⚗️ Implement chat API
This commit is contained in:
13
apps/viewer/src/utils/server/trpc.ts
Normal file
13
apps/viewer/src/utils/server/trpc.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { initTRPC } from '@trpc/server'
|
||||
import { OpenApiMeta } from 'trpc-openapi'
|
||||
import superjson from 'superjson'
|
||||
|
||||
const t = initTRPC.meta<OpenApiMeta>().create({
|
||||
transformer: superjson,
|
||||
})
|
||||
|
||||
export const middleware = t.middleware
|
||||
|
||||
export const router = t.router
|
||||
|
||||
export const publicProcedure = t.procedure
|
||||
Reference in New Issue
Block a user