From ba4eb3b78dbbb3246d91a57564fb5a2e60412e09 Mon Sep 17 00:00:00 2001 From: "kilian (dks-laptop)" Date: Tue, 31 Dec 2019 16:39:49 +0100 Subject: [PATCH] xx --- dksnas.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dksnas.pl b/dksnas.pl index 095ff06..9b097cf 100644 --- a/dksnas.pl +++ b/dksnas.pl @@ -45,12 +45,12 @@ print $cfgpath."\n"; my $allapp = builder { enable "DirIndex", dir_index => 'index.html'; - mount "/" => Plack::App::WrapCGI->new(script => $RealBin."/CGI/index.cgi" , execute => 1)->to_app; + mount "/" => Plack::App::WrapCGI->new(script => $RealBin."/CGI/index.cgi")->to_app; opendir(API,dirname($0)."/CGI/api"); while (my $s = readdir(API)){ if ($s =~ /\.cgi$/){ - mount "/api/".$s => Plack::App::WrapCGI->new(script => $RealBin."/CGI/api/".$s,execute => 1)->to_app; + mount "/api/".$s => Plack::App::WrapCGI->new(script => $RealBin."/CGI/api/".$s)->to_app; } } closedir(API); -- 2.39.5