tests are passing
[catagits/CatalystX-Routes.git] / t / lib / MyApp1 / Controller / C1.pm
CommitLineData
c4057ce2 1package MyApp1::Controller::C1;
2
3use Moose;
4use CatalystX::Routes;
5
69d9fc4e 6BEGIN { extends 'Catalyst::Controller' }
c4057ce2 7
69d9fc4e 8our %REQ;
9
10sub _get { $REQ{get}++ }
11sub _get_html { $REQ{get_html}++ }
12sub _post { $REQ{post}++ }
13sub _put { $REQ{put}++ }
14sub _del { $REQ{delete}++ }
c4057ce2 15
16get '/foo' => \&_get;
17
18get_html '/foo' => \&_get_html;
19
20post '/foo' => \&_post;
21
22put '/foo' => \&_put;
23
24del '/foo' => \&_del;
25
69d9fc4e 26sub normal : Chained('/') : Args(0) {
27 $REQ{normal}++;
28}
29
c4057ce2 301;