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
I would like to build a middleware that will deserialize my responses into the appropriate response object depending on the resource. To do that, I would need to be able to do something like:
Ah, nevermind, I'm a bit of an idiot. I didn't notice that the middleware actually receives the resourceName and resourceMethod, so it should be okay to selectively apply the middleware based on that.
I would like to build a middleware that will deserialize my responses into the appropriate response object depending on the resource. To do that, I would need to be able to do something like:
To do this currently, I would need to apply a global middleware and switch on the request path, which feels very ugly and prone to breakage.
The text was updated successfully, but these errors were encountered: