Skip to content

[Routing] Add square brackets around optional url parts generated by router:debug command #10217

@bigfoot90

Description

@bigfoot90

It would be useful for debugging have square brackets around optional url parts generated by router:debug command, for example:
/api/customers/{sort}-{dir}/{page}-{records}.{_format} become /api/customers[/{sort}[-{dir}[/{page}[-{records}[.{_format}]]]]]

So you can easily see which parts are really necessary and which ones can be omitted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions