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 (16 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package TestApp2::Controller::Root;
use strict;
use warnings;
use utf8;

__PACKAGE__->config(namespace => q{});

use base 'Catalyst::Controller';

# your actions replace this one
sub main :Path('') { 
    $_[1]->res->body('<h1>It works</h1>');
    $_[1]->res->content_type('text/html');
}

1;