Skip to content

Optional bound parameters in dynamic routes #18

@testinfected

Description

@testinfected

Make it possible to specify when a bound parameter is optional in a dynamic route, e.g.:

get("/products/:id(.:format)").to(products::show)

would specify that .:format is optional and match both /products/1 and /products/1.json

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions