From: Chris Cormack Date: Mon, 30 Dec 2013 01:42:19 +0000 (+1300) Subject: Got the dancer app working now X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=78be35490427c3ed7de1a6b2f1ab9865aa258c9c;p=working%2FNCIPServer.git Got the dancer app working now --- diff --git a/lib/NCIP/Dancing.pm b/lib/NCIP/Dancing.pm index 0a6192a..900c9e2 100644 --- a/lib/NCIP/Dancing.pm +++ b/lib/NCIP/Dancing.pm @@ -3,8 +3,18 @@ use Dancer ':syntax'; our $VERSION = '0.1'; -get '/' => sub { - template 'index'; +use NCIP; + + +any ['get', 'post'] => '/' => sub { + my $ncip = NCIP->new('t/config_sample'); + my $xml = param 'xml'; + warn $xml if $xml; + my $content = $ncip->process_request($xml); + # warn $content; + template 'main', { content => $content }; + + # warn "what"; }; true;