projects
/
working
/
NCIPServer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7038c7
)
Got the dancer app working now
author
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 30 Dec 2013 01:42:19 +0000
(14:42 +1300)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 30 Dec 2013 01:42:19 +0000
(14:42 +1300)
lib/NCIP/Dancing.pm
patch
|
blob
|
history
diff --git
a/lib/NCIP/Dancing.pm
b/lib/NCIP/Dancing.pm
index
0a6192a
..
900c9e2
100644
(file)
--- 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;