Update 2.server-side-calls.md

Fix wrong variable import
This commit is contained in:
Hoang Do
2022-11-15 00:46:06 +07:00
committed by GitHub
parent 20ab235856
commit fd98b0d414

View File

@@ -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)