trpc pipe middleware
Hey all.
I'm currently trying to create a middle ware on endpoints using the new
This is on a specific route which is formatted like:
Is it possible to retrieve the dynamic
Essentially I need to check if the current user has permission to access this guildId.
There unfortunetly doesn't seem to be any
I'm currently trying to create a middle ware on endpoints using the new
pipe API.This is on a specific route which is formatted like:
http://localhost:3000/dashboard/811452295324762131/pageIs it possible to retrieve the dynamic
id which is in this URL, in my middleware? I really need to access this for the middleware to be possible to use. Essentially I need to check if the current user has permission to access this guildId.
There unfortunetly doesn't seem to be any
req property in the pipe api which could give me router information.