bret_patB
tRPC3y ago
4 replies
bret_pat

Get query parameters in middleware

Hi! I'm looking to perform authorization inside of middleware and I'm wondering how I can access the parameters that the user queried inside of the middleware?

For example, let's say a user requested to look at Workout routine ID 532 in an API call. How would I be able to access the workout ID inside of middleware? I have their userID within CTX but no way to get the url path

Thanks!
Was this page helpful?