Skip to content
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

Adds support for methods in routing #3292

Merged

Conversation

StevendeVries
Copy link
Contributor

This adds support for the use of methods in the routing.yml
The code is based on the example from symfony: http://symfony.com/doc/current/book/routing.html#adding-http-method-requirements

your-route:
path: /mypage
defaults: { _controller: 'Bolt\Controllers\Frontend::listing' }
methods: [POST]

You can use multiple methods:

methods: [POST|GET]

@GwendolenLynch
Copy link
Contributor

Cool! 👍

@bobdenotter
Copy link
Member

Merging in! Thanks!

bobdenotter added a commit that referenced this pull request Apr 1, 2015
…methods

Adds support for methods in routing
@bobdenotter bobdenotter merged commit da27af0 into bolt:master Apr 1, 2015
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.

3 participants