Skip to content

Make list of Scully routes available inside (render) Plugins #374

@michielkikkert

Description

@michielkikkert

🧩 Feature request

Make list of Scully routes available inside (render) Plugins

Description

While working on a plugin to add Trailing slashes to href's - the need arises to be able to access a full list of Scully Routes inside the plugin. This doesn't seem possible at the moment. I can see more uses for this list for future plugins.

Describe the solution you'd like

An easy way to access the full list of known Scully routes (including extraRoutes etc) inside a plugin. Maybe for future extensibility the list should also contain the possible additional routing data - however for now (and this specific need) a flat list of routes should be fine (['/route1', 'route2', 'route2/child']).

Describe alternatives you've considered

Possibly fetching the scully-routes.json file directly from the file system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions