about summary refs log tree commit homepage
path: root/t/lei-mirror.psgi
diff options
context:
space:
mode:
Diffstat (limited to 't/lei-mirror.psgi')
-rw-r--r--t/lei-mirror.psgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/lei-mirror.psgi b/t/lei-mirror.psgi
new file mode 100644
index 00000000..6b4bbfec
--- /dev/null
+++ b/t/lei-mirror.psgi
@@ -0,0 +1,9 @@
+use Plack::Builder;
+use PublicInbox::WWW;
+my $www = PublicInbox::WWW->new;
+$www->preload;
+builder {
+        enable 'Head';
+        mount '/pfx' => builder { sub { $www->call(@_) } };
+        mount '/' => builder { sub { $www->call(@_) } };
+};