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
With endpoint routing this is no longer possible as Endpoints cannot be composed in this way. It is possible to "just" create an endpoint for each needed http verb. However, this can quickly become cumbersome.
Suggestion
It would be very convenient to have a function in the Giraffe Routers module to create an endpoint for multiple http verbs. The Routers module already has a private function to create such endpoints.
To make it easier to create endpoints for multiple verbs one could add a helper function in the style of:
Issue
With Giraffe default routing it was easy to compose routes to listen to multiple http verbs. One could do someting like:
With endpoint routing this is no longer possible as Endpoints cannot be composed in this way. It is possible to "just" create an endpoint for each needed http verb. However, this can quickly become cumbersome.
Suggestion
It would be very convenient to have a function in the Giraffe
Routers
module to create an endpoint for multiple http verbs. TheRouters
module already has a private function to create such endpoints.To make it easier to create endpoints for multiple verbs one could add a helper function in the style of:
This would make it possible to create endpoints for multile http verbs neatly like
The text was updated successfully, but these errors were encountered: