mirror of
https://github.com/Xevion/100prisoners.git
synced 2025-12-18 14:11:16 -06:00
Remove accessible example tRPC route
This commit is contained in:
@@ -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({});
|
||||
|
||||
Reference in New Issue
Block a user