Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 03652d4

Browse files
committed
Docs: Correct README.md mutation method (#13)
1 parent 3916085 commit 03652d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const body = await res.json(); /* { ok: true, data: { greeting: 'Hello James!' }
196196
```typescript
197197
// Router
198198
export const appRouter = trpc.router<Context, OpenApiMeta>().mutation('sayHello', {
199-
meta: { openapi: { enabled: true, method: 'GET', path: '/say-hello/{name}' /* 👈 */ } },
199+
meta: { openapi: { enabled: true, method: 'POST', path: '/say-hello/{name}' /* 👈 */ } },
200200
input: z.object({ name: z.string() /* 👈 */, greeting: z.string() }),
201201
output: z.object({ greeting: z.string() }),
202202
resolve: ({ input }) => {

0 commit comments

Comments
 (0)