Commit | Line | Data |
dd4e6fd2 |
1 | package TestApp::Controller::Action::Path; |
2 | |
3 | use strict; |
4 | use base 'TestApp::Controller::Action'; |
5 | |
c02f7490 |
6 | __PACKAGE__->config( |
7 | actions => { |
8 | 'one' => { 'Path' => [ 'a path with spaces' ] }, |
9 | 'two' => { 'Path' => "åäö" }, |
10 | }, |
11 | ); |
12 | |
13 | sub one : Action Path("this_will_be_overriden") { |
dd4e6fd2 |
14 | my ( $self, $c ) = @_; |
15 | $c->forward('TestApp::View::Dump::Request'); |
16 | } |
17 | |
c02f7490 |
18 | sub two : Action { |
dd4e6fd2 |
19 | my ( $self, $c ) = @_; |
20 | $c->forward('TestApp::View::Dump::Request'); |
21 | } |
22 | |
b74baa06 |
23 | sub three :Path { |
24 | my ( $self, $c ) = @_; |
25 | $c->forward('TestApp::View::Dump::Request'); |
26 | } |
27 | |
9e674714 |
28 | sub four : Path( 'spaces_near_parens_singleq' ) { |
29 | my ( $self, $c ) = @_; |
30 | $c->forward('TestApp::View::Dump::Request'); |
31 | } |
32 | |
33 | sub five : Path( "spaces_near_parens_doubleq" ) { |
34 | my ( $self, $c ) = @_; |
35 | $c->forward('TestApp::View::Dump::Request'); |
36 | } |
37 | |
dd4e6fd2 |
38 | 1; |