Routing based on a wild flag for all http verbs #1637
Unanswered
snosratiershad
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I just used to route all http verbs to an endpoint.
Instead of listing all verbs in
methods
parameter of Route class, I think it's better to extendRoute
class like this:So you can route requests with all http verbs to an endpoint with something like
ExtendedRoute("/about", endpoint=<endpoint>, method=["*"])
.Actually I'm not sure, Is it a good feature? Should I change the original Route class in a PR? let's discuss about it.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions