stop using Moo as a test package
[catagits/Catalyst-Runtime.git] / t / lib / TestAppWithoutUnicode / Controller / Root.pm
CommitLineData
4fb27043 1package TestAppWithoutUnicode::Controller::Root;
2
3use Moose;
4BEGIN { extends 'Catalyst::Controller' }
5use Encode qw(encode_utf8 decode_utf8);
6
7__PACKAGE__->config( namespace => q{} );
8
9sub default : Private {
10 my ( $self, $c ) = @_;
11 my $param = decode_utf8($c->request->parameters->{'myparam'});
12 $c->response->body( encode_utf8($param) );
13}
14
15__PACKAGE__->meta->make_immutable;
16
171;