From 61a112a39270690fa141b0983e6fe37c723e9088 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sat, 13 Mar 2021 00:42:36 -0500 Subject: [PATCH] Implement restrictive placeholder --- Dockerfile | 1 + www-swagg.pl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9a1f51c..ba89c27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ COPY templates/ ./templates/ COPY .mmCreds.xml . COPY .msg.bans . COPY .name.bans . +COPY www-swagg.conf . COPY www-swagg.pl . # Finish setting up the environment diff --git a/www-swagg.pl b/www-swagg.pl index 5dd65b6..d8d4bab 100755 --- a/www-swagg.pl +++ b/www-swagg.pl @@ -98,7 +98,7 @@ get '/ula6' => sub { }; # Catch any other route -get '/:route' => sub { +get '/:route' => [route => [qw{die me news}]] => sub { my ($c) = @_; my $route = $c->stash('route');