$ctx->response->body('any');
}
+sub typo_option : Path('opt_typo') OPTION {
+ my ($self, $ctx) = @_;
+ $ctx->response->body('typo');
+}
+
+sub real_options : Path('opt') OPTIONS {
+ my ($self, $ctx) = @_;
+ $ctx->response->body('options');
+}
+
sub base :Chained('/') PathPrefix CaptureArgs(0) { }
sub chained_get :Chained('base') Args(0) GET {
sub check_default :Chained('base') CaptureArgs(0) { }
+sub chain_default :Chained('check_default') PathPart('') Args(0) {
+ pop->res->body('chain_default');
+}
+
sub default_get :Chained('check_default') PathPart('') Args(0) GET {
pop->res->body('get3');
}
pop->res->body('post3');
}
-sub chain_default :Chained('check_default') PathPart('') Args(0) {
- pop->res->body('chain_default');
-}
+
__PACKAGE__->meta->make_immutable;