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
For example, I hava a resource named "User". And I want to use POST method to create a user than use PUT method to modify it. In additional, everyone can create user. But only user itself can modify it. So I have following code:
That is a good point! I like your idea of using a mapping of methods to decision functions. Another approach would by to provide a higher order function like
I think it's a good solution. Hoping for seeing it in version 1.0.
Maybe there can be a determination in by-method for the situation that either method-key or :any is not found?
In my development, I often write decisions for different
request-method
as following codeSo I want to make this easier like this:
I don't know if there is anyone wants this too.
The text was updated successfully, but these errors were encountered: