Permalink
Browse files

Implement sum server on Dancer which is PSGI-compatible.

  • Loading branch information...
1 parent a5aad5b commit 382b69e13ee5305b270d6a6713c9dd8aba766305 @kappa committed Sep 26, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 httpd-dancer.pl
View
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+use Dancer;
+
+get '/sum' => sub {
+ params->{a} + params->{b}
+};
+
+dance;

0 comments on commit 382b69e

Please sign in to comment.