Skip to content

Make parameter optional #347

@nmsobri

Description

@nmsobri

Is there a way to make parameter optional? I cant see anywhere in the documentation being mention

Router({
    '/foo/:optional_param' : function(){}  })

/foo or foo/bar will trigger this route

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions