Skip to content

Commit

Permalink
the router is needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 27, 2015
1 parent 10488d3 commit 3aa5db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -622,7 +622,7 @@ L<Mojo::UserAgent::Server> object.
# Mock web service
$ua->server->app(Mojolicious->new);
$ua->server->app->get('/time' => sub {
$ua->server->app->routes->get('/time' => sub {
my $c = shift;
$c->render(json => {now => time});
});
Expand Down

0 comments on commit 3aa5db9

Please sign in to comment.