Update 2.server-side-calls.md

This commit is contained in:
Robert Soriano
2022-11-14 12:26:48 -08:00
committed by GitHub
parent b8e2a83e26
commit ac212672e4

View File

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