File: Root.pm

package info (click to toggle)
libcatalyst-authentication-credential-http-perl 1.018-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 404 kB
  • sloc: perl: 656; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package AuthTestApp::Controller::Root;
use strict;
use warnings;

use base qw/ Catalyst::Controller /;

__PACKAGE__->config( namespace => '' );

sub auto : Private {
    my ($self, $c) = @_;
    $c->authenticate();
}
sub moose : Local {
    my ( $self, $c ) = @_;
    $c->res->body( $c->user->id );
}

1;