Switched to Module::Install
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Private.pm
CommitLineData
dd4e6fd2 1package TestApp::Controller::Action::Private;
2
3use strict;
4use base 'TestApp::Controller::Action';
5
6sub default : Private {
7 my ( $self, $c ) = @_;
8 $c->res->output('access denied');
9}
10
11sub one : Private {
12 my ( $self, $c ) = @_;
13 $c->res->output('access allowed');
14}
15
16sub two : Private Relative {
17 my ( $self, $c ) = @_;
18 $c->res->output('access allowed');
19}
20
21sub three : Private Absolute {
22 my ( $self, $c ) = @_;
23 $c->res->output('access allowed');
24}
25
26sub four : Private Path('/action/private/four') {
27 my ( $self, $c ) = @_;
28 $c->res->output('access allowed');
29}
30
31sub five : Private Path('five') {
32 my ( $self, $c ) = @_;
33 $c->res->output('access allowed');
34}
35
361;