Skip to content

Commit f0a090d

Browse files
authored
Merge pull request #2018 from s1037989/patch-7
Set correct namespace in example code
2 parents cfa34e0 + 75b97b5 commit f0a090d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Mojolicious/Guides/Cookbook.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,10 +1799,10 @@ installed application so they can be excluded.
17991799
$self->renderer->paths->[0] = $self->home->child('templates');
18001800

18011801
# Exclude author commands
1802-
$self->commands->namespaces(['Mojolicious::Commands']);
1802+
$self->commands->namespaces(['Mojolicious::Command']);
18031803

18041804
my $r = $self->routes;
1805-
$r->get('/welcome')->to('example#welcome');
1805+
$r->get('/')->to('example#welcome');
18061806
}
18071807

18081808
1;

0 commit comments

Comments
 (0)