From a6134a0ca3ac69f2dfe353019c35eb36db3d831e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Apr 2014 22:58:23 +0000 Subject: split out WWW package and CGI/PSGI-specific parts This should allow us to more-easily test with Plack. --- examples/public-inbox.psgi | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/public-inbox.psgi (limited to 'examples') diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi new file mode 100644 index 00000000..6d8fd24c --- /dev/null +++ b/examples/public-inbox.psgi @@ -0,0 +1,12 @@ +#!/usr/bin/perl -w +# Copyright (C) 2014, Eric Wong and all contributors +# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt) +# Note: this is part of our test suite, update t/plack.t if this changes +use strict; +use warnings; +require PublicInbox::WWW; +require Plack::Request; +sub { + my $req = Plack::Request->new(@_); + PublicInbox::WWW::run($req, $req->method); +}; -- cgit v1.2.3-24-ge0c7