6
my $r = Router::Simple->new();
9
'/' => { controller => 'Root', action => 'show' },
16
my ( $ret, $route ) = $r->routematch(
17
{ HTTP_HOST => 'localhost', REQUEST_METHOD => 'GET', PATH_INFO => '/' }
19
is_deeply $route->method, ['GET'];
20
is_deeply $route->host, 'localhost';
21
is ref($route->on_match), 'CODE';