diff options
author | Eric Wong <e@80x24.org> | 2014-04-30 22:58:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-05-01 01:49:23 +0000 |
commit | a6134a0ca3ac69f2dfe353019c35eb36db3d831e (patch) | |
tree | 1fc1dbf53c2bf6441dde8a7979a0ee901157956e /examples | |
parent | dae2c7b509308c052406a0d811e84e30db1bedd2 (diff) | |
download | public-inbox-a6134a0ca3ac69f2dfe353019c35eb36db3d831e.tar.gz |
This should allow us to more-easily test with Plack.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/public-inbox.psgi | 12 |
1 files changed, 12 insertions, 0 deletions
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 <normalperson@yhbt.net> 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); +}; |