Commit | Line | Data |
---|---|---|
1640822e | 1 | package TestApp::Controller::Root; |
044d8723 | 2 | use Moose; |
3 | use namespace::autoclean; | |
4 | ||
5 | BEGIN { extends 'Catalyst::Controller'; } | |
1640822e | 6 | |
7 | __PACKAGE__->config(namespace => q{}); | |
8 | ||
044d8723 | 9 | sub default : Action { |
10 | my ($self, $c) = @_; | |
11 | $c->res->body( $c->req->base ); | |
12 | $c->res->content_type('text/plain'); | |
13 | } | |
1640822e | 14 | |
044d8723 | 15 | __PACKAGE__->meta->make_immutable; |
1640822e | 16 |