Move actions out of test app
[catagits/Catalyst-Authentication-Credential-HTTP.git] / t / lib / AuthTestApp / Controller / Root.pm
CommitLineData
d9412896 1package AuthTestApp::Controller::Root;
2use strict;
3use warnings;
4
5use base qw/ Catalyst::Controller /;
6
7__PACKAGE__->config( namespace => '' );
8
9sub auto : Private {
10 my ($self, $c) = @_;
11 $c->authenticate();
12}
13sub moose : Local {
14 my ( $self, $c ) = @_;
15 $c->res->body( $c->user->id );
16}
17
181;
19