1 package SampleREST::Controller::Root;
5 use base 'Catalyst::Controller';
8 # Sets the actions in this controller to be registered with no prefix
9 # so they function identically to actions created in MyApp.pm
11 __PACKAGE__->config->{namespace} = '';
15 SampleREST::Controller::Root - Root Controller for SampleREST
19 [enter your description here]
29 sub default : Private {
30 my ( $self, $c ) = @_;
33 $c->response->body( $c->welcome_message );
38 Attempt to render a view, if needed.
42 sub end : ActionClass('RenderView') {}
50 This library is free software, you can redistribute it and/or modify
51 it under the same terms as Perl itself.