File: Root.pm

package info (click to toggle)
libcatalyst-perl 5.90114-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,068 kB
  • ctags: 1,490
  • sloc: perl: 13,413; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package TestDataHandlers::Controller::Root;

use base 'Catalyst::Controller';

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;