Skip to content

Mojolicious::Plugin::Mount: mounting two applications #1911

Answered by zaucker
zaucker asked this question in Q&A
Discussion options

You must be logged in to vote

Oh well, this does work:

    for my $mock (qw(mock1 mock2)) {
        $app->app->plugin(
            Mount => {
                "/$mock" => curfile->sibling("$mock.pl"),
            }
        );
    }

The "mount point" for the two apps must be different.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zaucker
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant