From: kilian (dks-laptop) Date: Tue, 31 Dec 2019 15:39:49 +0000 (+0100) Subject: xx X-Git-Url: http://cloud.dks.lu/git/?a=commitdiff_plain;h=ba4eb3b78dbbb3246d91a57564fb5a2e60412e09;p=dksnas.git xx --- 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);