Commit | Line | Data |
---|---|---|
9dac01c7 | 1 | package TestAppMatchSingleArg::Controller::Root; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | use base 'Catalyst::Controller'; | |
6 | ||
7 | __PACKAGE__->config->{namespace} = ''; | |
8 | ||
9 | sub match_single : Path Args(1) { | |
10 | my ($self, $c) = @_; | |
11 | $c->res->body('Path Args(1)'); | |
12 | } | |
13 | ||
14 | sub match_other : Path { | |
15 | my ($self, $c) = @_; | |
16 | $c->res->body('Path'); | |
17 | } | |
18 | ||
cdf573a6 | 19 | sub match_two : Path Args(2) { |
20 | my ($self, $c) = @_; | |
21 | $c->res->body('Path Args(2)'); | |
22 | } | |
23 | ||
9dac01c7 | 24 | 1; |