Experiments with tRPC and Nuxt Server API
This commit is contained in:
7
server/api/trpc/[trpc].ts
Normal file
7
server/api/trpc/[trpc].ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createTRPCNuxtHandler } from 'trpc-nuxt/server';
|
||||
import { appRouter } from '~/server/trpc/routers';
|
||||
|
||||
export default createTRPCNuxtHandler({
|
||||
endpoint: '/api/trpc',
|
||||
router: appRouter,
|
||||
});
|
||||
Reference in New Issue
Block a user