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

Support for different HTTP methods #8

@Ocramius

Description

@Ocramius

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions