export default defineEventHandler(async (event) => { console.log('trpc route handler'); const res = await nodeHTTPRequestHandler({ req: event.node.req, res: event.node.res, router: appRouter, path: getRequestURL(event).pathname.replace('/api/trpc/', ''), }); return event.node.res;});
trpc-nuxt
userId
enabled