update distar url
[catagits/Catalyst-Runtime.git] / t / lib / TestDataHandlers / Controller / Root.pm
index 42bf85b..f079a0f 100644 (file)
@@ -2,9 +2,16 @@ package TestDataHandlers::Controller::Root;
 
 use base 'Catalyst::Controller';
 
+sub root :Path('/') {}
+
 sub test_json :Local {
     my ($self, $c) = @_;
     $c->res->body($c->req->body_data->{message});
 }
 
+sub test_nested_for :Local {
+    my ($self, $c) = @_;
+    $c->res->body($c->req->body_data->{nested}->{value});
+}
+
 1;