Remove accessible example tRPC route

This commit is contained in:
Xevion
2022-12-18 00:35:25 -06:00
parent 3021aac384
commit 11ac3179a3

View File

@@ -1,13 +1,3 @@
import { z } from "zod";
import {router} from "@/server/trpc/trpc";
import { router, publicProcedure } from "@/server/trpc/trpc";
export const exampleRouter = router({
hello: publicProcedure
.input(z.object({ text: z.string().nullish() }).nullish())
.query(({ input }) => {
return {
greeting: `Hello ${input?.text ?? "world"}`,
};
}),
});
export const exampleRouter = router({});