docs: update example

This commit is contained in:
wobsoriano
2022-11-13 10:58:27 -08:00
parent 2d3409a25b
commit eea6406d5a

View File

@@ -56,7 +56,7 @@ import { z } from 'zod'
const posts = ['One', 'Two', 'Three']
const t = initTRPC.create()
const router = t.router({
export const router = t.router({
post: t.router({
add: t.procedure.input(z.string()).mutation(({ input }) => {
posts.push(input)