Requests | Blesta

Requests

Plugin Route Registration

Aleksa Djordjic shared this idea 4 months ago
Under Consideration

Using the download manager plugin as an example, currently if you'd like to access a file download for a file, you'd have to go to yoururl.com/download_manager/client_main/...

To make the URL more friendly, config/routes.php has the following:

Router::route('^download/(.+)', 'download_manager/client_main/static/$1');

This accesses `download_manager/client_main/static/` when you go to just `download/`

Feature request is to add a way for plugins to register their own routes as the one mentioned above when they're installed, instead of having to edit a global file.

Depending on how the feature would be implemented, could allow a way to have a "route manager" plugin where you could let admins put in any confusing URL that they want and "prettify" it - Commonly what I saw as a request for the knowledgebase.