package MyApp1::Controller::C1;

use Moose;
use CatalystX::Routes;

BEGIN { extends 'Catalyst::Controller' }

our %REQ;

sub _get      { $REQ{get}++ }
sub _get_html { $REQ{get_html}++ }
sub _post     { $REQ{post}++ }
sub _put      { $REQ{put}++ }
sub _del      { $REQ{delete}++ }

get '/foo' => \&_get;

get_html '/foo' => \&_get_html;

post '/foo' => \&_post;

put '/foo' => \&_put;

del '/foo' => \&_del;

get 'bar'=> \&_get;

get_html 'bar'=> \&_get_html;

post 'bar'=> \&_post;

put 'bar'=> \&_put;

del 'bar'=> \&_del;

sub normal : Chained('/') : Args(0) {
    $REQ{normal}++;
}

1;
