-d and --debug work for me
[catagits/Catalyst-Runtime.git] / t / TestApp / lib / TestApp / Controller / Root.pm
CommitLineData
cc999ce2 1package TestApp::Controller::Root;
2
3use strict;
4use warnings;
5use parent 'Catalyst::Controller';
6
7#
8# Sets the actions in this controller to be registered with no prefix
9# so they function identically to actions created in MyApp.pm
10#
11__PACKAGE__->config->{namespace} = '';
12
13=head1 NAME
14
15TestApp::Controller::Root - Root Controller for TestApp
16
17=head1 DESCRIPTION
18
19[enter your description here]
20
21=head1 METHODS
22
23=cut
24
25=head2 index
26
27=cut
28
29sub index :Path :Args(0) {
30 my ( $self, $c ) = @_;
31
32 # Hello World
33 $c->response->body( $c->welcome_message );
34}
35
36sub default :Path {
37 my ( $self, $c ) = @_;
38 $c->response->body( 'Page not found' );
39 $c->response->status(404);
40}
41
2dc77703 42sub test : Local {
43 my ($self, $c) = @_;
44
d1014540 45 $c->res->body("herro!");
2dc77703 46}
47
cc999ce2 48=head2 end
49
50Attempt to render a view, if needed.
51
52=cut
53
54sub end : ActionClass('RenderView') {}
55
56=head1 AUTHOR
57
58Devin Austin,,,
59
60=head1 LICENSE
61
62This library is free software. You can redistribute it and/or modify
63it under the same terms as Perl itself.
64
65=cut
66
671;