ZeffMu
ZeffMu copied to clipboard
Support for different HTTP methods
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?