Got the dancer app working now
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 30 Dec 2013 01:42:19 +0000 (14:42 +1300)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 30 Dec 2013 01:42:19 +0000 (14:42 +1300)
lib/NCIP/Dancing.pm

index 0a6192a..900c9e2 100644 (file)
@@ -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;