Reading about placeholders, I thought that this:
$r->get('/report/:action', action => [ qw(missing inventory) ] )
->to( controller => 'report', record_limit => $record_limit );
could replace these two:
$r->get('/report/missing' )->to('report#missing', record_limit =>
$record_limit );
$r->get('/report/inventory')->to('report#inventory', record_limit =>
$record_limit );
But my tests return 404 for each page. What have I missed?
Sincerely,
--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.