8 my $conf_dir = $ENV{'NCIP_CONFIG_DIR'} || 't/config_sample';
10 any [ 'get', 'post' ] => '/' => sub {
11 content_type 'application/xml';
12 my $ncip = NCIP->new($conf_dir);
13 my $xml = param 'xml';
14 if ( request->is_post ) {
17 my $content = $ncip->process_request($xml);
19 template 'main', { content => $content };