Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

now to name nested route #2

Open
mla opened this issue Feb 26, 2017 · 1 comment
Open

now to name nested route #2

mla opened this issue Feb 26, 2017 · 1 comment

Comments

@mla
Copy link
Owner

mla commented Feb 26, 2017

If I wanted this route to be named admin_report, how would I do that?

$r->with(admin => '/admin', 'Admin')
    ->with(report => '/report', '::Report')
    ->add(undef, '/{action}', '#index')
@mla
Copy link
Owner Author

mla commented Feb 26, 2017

Could do this, but it's ugly:

$r->with(admin => '/admin', 'Admin')
    ->add(admin_report => '/report', '::Report')
    ->add(admin_report_named => '/report/{action}', '::Report')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant