ZeffMu icon indicating copy to clipboard operation
ZeffMu copied to clipboard

Support for different HTTP methods

Open Ocramius opened this issue 12 years ago • 0 comments

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?

Ocramius avatar Jan 12 '13 23:01 Ocramius