KES777 / mojo

Mojolicious - Perl real-time web framework
http://mojolicio.us
Artistic License 2.0
0 stars 0 forks source link

Imrpove the DOC about route name #32

Open KES777 opened 6 years ago

KES777 commented 6 years ago
Hi. May you please clarify in DOC: http://mojolicious.org/perldoc/Mojolicious/Routes/Route#any that route name is required to be last if provided for example this do not work: $r->any('/:foo' => 'foo_route', { some => 'value' }); From sources: # Last scalar is the route name https://metacpan.org/source/SRI/Mojolicious-7.71/lib/Mojolicious/Routes/Route.pm#L190