-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revel.Route.TreePath remove http method #1212
Comments
The challenging part with that is Revel registers it as a miss on the router path since the route path starts with matching the method and working its way up. So when it looks up your request it looks for What could be done is that I add another route without the method (for methods which are defined) and if the first lookup fails then a second lookup could occur which may find a match and if a match is found we could set the status code to |
I think the point is how to to define how about the pseudo-code below
|
There is a domain routing feature I have been eyeing that this could be implemented in. I added a reference back to this from there. |
Feature/domain routing #536 ? It looks like is not releated to my idea. 😢 |
It has to do with changes to the router, I am putting them both together in that aspect. |
# routes file ... GET / App.Index ...
when i access
http://localhost:9000/
withPOST
method, the server return response with status code404
.I think it should be
405(method not allowed)
The text was updated successfully, but these errors were encountered: