added context var description
[catagits/CatalystX-Declare.git] / t / lib / TestApp / Controller / SignatureMatching.pm
CommitLineData
ed4a2203 1use CatalystX::Declare;
2
3controller TestApp::Controller::SignatureMatching {
4
5 action base as 'sigmatch' under '/';
6
7 under base {
8
9 final action int (Int $x)
10 as 'test' { $ctx->response->body( $ctx->action->reverse ) }
11
12 final action str (Str $x where { /^[a-z]+$/ })
13 as 'test' { $ctx->response->body( $ctx->action->reverse ) }
14
15 final action rest (@)
16 as '' { $ctx->response->body( $ctx->action->reverse ) }
17 }
18}