xx
authorkilian (dks-laptop) <ksaffran@dks.lu>
Tue, 31 Dec 2019 15:39:49 +0000 (16:39 +0100)
committerkilian (dks-laptop) <ksaffran@dks.lu>
Tue, 31 Dec 2019 15:39:49 +0000 (16:39 +0100)
dksnas.pl

index 095ff06..9b097cf 100644 (file)
--- 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);