Valid routes with invalid methods taking precedence over static files #370

Closed
ben-ng opened this Issue May 25, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@ben-ng
Contributor

ben-ng commented May 25, 2013

If you have a wildcard route like

router.post('/*path(.:format)').to({controller:'mycontroller',action:'dosomething'});

All static files now fail to be served, because geddy returns a 405 error before checking if the route matched a static file. This is pretty unexpected behavior. I'm using a wildcard route to match all OPTIONS requests to an action on my controller and that breaks all my assets.

ben-ng pushed a commit to ben-ng/geddy that referenced this issue May 25, 2013

ben-ng pushed a commit to ben-ng/geddy that referenced this issue May 25, 2013

@mde mde closed this in #372 May 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment