File: Private.pm

package info (click to toggle)
libcatalyst-perl 5.7014-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,276 kB
  • ctags: 874
  • sloc: perl: 11,270; makefile: 48
file content (36 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package TestApp::Controller::Action::Private;

use strict;
use base 'TestApp::Controller::Action';

sub default : Private {
    my ( $self, $c ) = @_;
    $c->res->output('access denied');
}

sub one : Private { 
    my ( $self, $c ) = @_;
    $c->res->output('access allowed');
}

sub two : Private Relative {
    my ( $self, $c ) = @_;
    $c->res->output('access allowed');
}

sub three : Private Absolute {
    my ( $self, $c ) = @_;
    $c->res->output('access allowed');
}

sub four : Private Path('/action/private/four') {
    my ( $self, $c ) = @_;
    $c->res->output('access allowed');
}

sub five : Private Path('five') {
    my ( $self, $c ) = @_;
    $c->res->output('access allowed');
}

1;