Skip to content

Plural or multiple paths to same routine #89

@HelloChrisBrown

Description

@HelloChrisBrown

Hey guys. Wondering if there's already something for this that I'm overlooking. For times when you have the singular and pluralizes paths take the same action, is there a way of combing these in one call? Currently I declare the routine as a function then make two separate path declarations. I'd love to do something like this:

    $router->get(array('/User','/Users'), function ()......);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions