1 package Test::LDAP::Controller::Root;
3 use namespace::autoclean;
5 BEGIN { extends '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 Test::LDAP::Controller::Root - Root Controller for Test::LDAP
19 [enter your description here]
29 sub index :Path :Args(0) {
30 my ( $self, $c ) = @_;
32 $c->res->body("Index");
37 Standard 404 error page
42 my ( $self, $c ) = @_;
44 $c->res->body("Not found");
50 Attempt to render a view, if needed.
54 sub end : ActionClass('RenderView') {
56 my $errors = scalar @{$c->error};
59 $c->res->body("Internal error");
60 $c->res->status("500");
71 This library is free software. You can redistribute it and/or modify
72 it under the same terms as Perl itself.
76 __PACKAGE__->meta->make_immutable;