Adding a root url path for app with assets #2127
-
I have a Mojolicious app and need to "move" all routes to work with root path "/foo". Already found a
The problem is that I use "Mojolicious::Plugin::AssetPack" for serving css & js files and can't figure out a smart way how to add same "/foo" prefix for assets urls. Maybe there is some better solution than |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think |
Beta Was this translation helpful? Give feedback.
I don't think
partial
contributes anything of value there. ForMojolicious::Plugin::AssetPack
there should be aroute
option somewhere that can be used to set a prefix. And you forgot about static files, in newer versions of Mojolicious those can also have aprefix configured with https://metacpan.org/pod/Mojolicious::Static#prefix.