]> git.evergreen-ils.org Git - working/NCIPServer.git/blob - lib/NCIP/Dancing.pm
Make some changes to NCIP::ILS::Evergreen->check_circ_details.
[working/NCIPServer.git] / lib / NCIP / Dancing.pm
1 package NCIP::Dancing;
2 use Dancer ':syntax';
3
4 our $VERSION = '0.1';
5
6 use NCIP;
7
8
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 ) {
14         $xml = request->body;
15     }
16     my $content = $ncip->process_request($xml);
17 #    warn $content;
18     template 'main', { content => $content };
19 };
20
21 true;