summaryrefslogtreecommitdiff
path: root/cspreport.pl
diff options
context:
space:
mode:
authorPeter Ludikovsky <peter@ludikovsky.name>2016-12-06 16:06:30 +0100
committerPeter Ludikovsky <peter@ludikovsky.name>2016-12-06 16:06:30 +0100
commitd4afb5b3f5a74d7fd210409b6ffbaa5fef93d007 (patch)
treef9e4af853c51f9d360388fcb4f40f52de0a05958 /cspreport.pl
Initial commitHEADmain
Diffstat (limited to 'cspreport.pl')
-rw-r--r--cspreport.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/cspreport.pl b/cspreport.pl
new file mode 100644
index 0000000..31281d1
--- /dev/null
+++ b/cspreport.pl
@@ -0,0 +1,15 @@
+#!/usr/bin/perl -w
+
+use strict;
+use warnings;
+use utf8;
+use lib qw/./;
+
+use CGI::PSGI;
+use cspreport;
+
+my $handler = sub {
+ my $env = shift;
+ my $app = cspreport->new( { QUERY => CGI::PSGI->new($env) } );
+ $app->run_as_psgi();
+};