You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey @Jay-Madden - this isn’t directly supported. I’d probably approach this by using RouteToHandler and keeping track of the requests myself or by using AppendHandlers as you are.
if you see this pattern a lot you could implement a custom shim handler that takes an array of handlers and manages the ordering for you - then pass that handler on to RouteToHandler. I could share an example if that would be helpful.
For example I have routes:
I would like
/foo/bar
to respond to the first request to that url with{"data": 1}
and the second request with{"data": 2}
I would like
/baz/bax
to respond to the first request to that url with{"data2": 3}
and the second request with{"data2": 4}
I could not find a way to achieve this in the docs and am currently doing it via
.AppendHandlers
and putting all routes in there with verifiesThe text was updated successfully, but these errors were encountered: