mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
Merge branch 'next' of https://github.com/wobsoriano/trpc-nuxt into next
This commit is contained in:
@@ -27,7 +27,7 @@ export const router = t.router({
|
||||
```
|
||||
|
||||
```ts [server/api/greeting.ts]
|
||||
import { caller } from '@/server/trpc/trpc'
|
||||
import { router } from '@/server/trpc/trpc'
|
||||
|
||||
export default eventHandler(async (event) => {
|
||||
const { name } = getQuery(event)
|
||||
@@ -67,7 +67,7 @@ export const router = t.router({
|
||||
```
|
||||
|
||||
```ts [server/api/post.ts]
|
||||
import { caller } from '@/server/trpc/trpc'
|
||||
import { router } from '@/server/trpc/trpc'
|
||||
|
||||
export default eventHandler(async (event) => {
|
||||
const body = await getBody(event)
|
||||
|
||||
Reference in New Issue
Block a user