Skip to content

Overwrite method if request for _method is present#63

Open
petemcfarlane wants to merge 4 commits intoanandkunal:masterfrom
petemcfarlane:check-request-for-_method
Open

Overwrite method if request for _method is present#63
petemcfarlane wants to merge 4 commits intoanandkunal:masterfrom
petemcfarlane:check-request-for-_method

Conversation

@petemcfarlane
Copy link
Copy Markdown

I really like this simple router, I think it would be a touch more flexible if you were able to overwrite the request method with a simple hidden input (a similar implementation to RoR). This would mean that users don't have to use XMLHTTPRequests to do PUT or DELETE requests. It's only an extra IF check, so hopefully doesn't 'bloat' the software too much IMO, but what do I know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants