1 package TestApp::Controller::Root;
3 use namespace::autoclean;
5 BEGIN { extends 'Catalyst::Controller' }
7 __PACKAGE__->config(namespace => q{});
9 sub base : Chained('/') PathPart('') CaptureArgs(0) {}
11 # your actions replace this one
12 sub main : Chained('base') PathPart('') Args(0) {
13 my ($self, $ctx) = @_;
14 $ctx->res->body('<h1>It works</h1>');
17 __PACKAGE__->meta->make_immutable;