Closed KES777 closed 6 years ago
It is not obvious that route name should be last argument. It is documented in source code but not mentioned in DOC This did not work: $r->any( '/test', 'route_name', { action => 'xxx' } )
Add corresponding NOTE into the DOC: http://mojolicious.org/perldoc/Mojolicious/Routes/Route#any
already fixed:
my $route = $r->any('/:foo' => sub {...} => 'name');
It is not obvious that route name should be last argument. It is documented in source code but not mentioned in DOC This did not work: $r->any( '/test', 'route_name', { action => 'xxx' } )
Add corresponding NOTE into the DOC: http://mojolicious.org/perldoc/Mojolicious/Routes/Route#any