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