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