Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Support for different HTTP methods #8

Open
Ocramius opened this issue Jan 12, 2013 · 0 comments
Open

Support for different HTTP methods #8

Ocramius opened this issue Jan 12, 2013 · 0 comments

Comments

@Ocramius
Copy link
Collaborator

Routing currently matches only the URL to define which controller to use. Something like following may be useful:

$app->route('/blog', 'GET', function() {
        // view the blog
    })
    ->route('/blog', 'POST', function() {
        // add a new blogpost
    })

@DASPRiD do you think this may be interesting for Zend\Mvc\Router\Http as well?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant