File: Root.pm

package info (click to toggle)
libcatalyst-perl 5.90124-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,992 kB
  • sloc: perl: 11,123; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;