Commit | Line | Data |
---|---|---|
ed4a2203 | 1 | use CatalystX::Declare; |
2 | ||
3 | controller 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 | } |