Commit | Line | Data |
---|---|---|
802a7626 | 1 | package TestApp1::Controller::Root; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
6 | use base 'Catalyst::Controller'; | |
7 | ||
8 | __PACKAGE__->config->{namespace} = ''; | |
9 | ||
10 | sub default :Path { | |
11 | my ( $self, $c ) = @_; | |
12 | $c->response->body( 'Page not found' ); | |
13 | $c->response->status(404); | |
14 | } | |
15 | ||
16 | 1; |