On 23/09/2014 06:18, Stefan Adams wrote:
> I feel like the core Plugin Mount would best address your objectives.
> 
> I've built a router app based entirely on Mount that simply makes other
> apps available within their respective url name spaces.
> 
> Hopefully that's what you're looking for!

Seems nice but fails.

In my router application :
$self->plugin('Mount' => {'/myapp' => File::Spec->catfile($Bin, '..',
'script', 'application')});

url_for('/') (or with the route name url_for('index')) still returns
'/myapp' and not '/myapp/' as wanted while if I don't put my app in a
subdirectory, url_for('/') returns '/'.

If I mount the app under '/myapp/', the result is the same.

I use the latest Mojolicious version (5.44) and perl 5.14.2
-- 
Luc
http://www.fiat-tux.fr/
Internet n'est pas compliqué, Internet est ce que vous en faites.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to