Commit | Line | Data |
dd4e6fd2 |
1 | package TestApp::Controller::Action::Regexp; |
2 | |
3 | use strict; |
4 | use base 'TestApp::Controller::Action'; |
5 | |
6d030e6f |
6 | sub one : Action Regex('^action/regexp/(\w+)/(\d+)$') { |
dd4e6fd2 |
7 | my ( $self, $c ) = @_; |
8 | $c->forward('TestApp::View::Dump::Request'); |
9 | } |
10 | |
081def36 |
11 | sub two : Action LocalRegexp('^(\d+)/(\w+)$') { |
dd4e6fd2 |
12 | my ( $self, $c ) = @_; |
13 | $c->forward('TestApp::View::Dump::Request'); |
14 | } |
15 | |
cccc8f68 |
16 | sub three : Action LocalRegex('^(mandatory)(/optional)?$'){ |
17 | my ( $self, $c ) = @_; |
18 | $c->forward('TestApp::View::Dump::Request'); |
19 | } |
20 | |
dd4e6fd2 |
21 | 1; |