Forced router input?
I have a user route which has routes like get, delete, create etc. Some of the routes I require extra data but in all of them, my input contains:
I also call this code in all my routes:
Is there a way to create a wrapper or middleware that implements route logic like
.input()
but allows for other routes?2 Replies
Define Procedures | tRPC
A procedure is a function which is exposed to the client, it can be one of:
Yea I saw that
Trpc is actually blowing my mind. This library is as cool as zod