try to make swagger safer with send_file

This commit is contained in:
Oliver Gorwits
2020-04-19 11:22:28 +01:00
parent ed1cf3e2cd
commit da33478504
18 changed files with 6 additions and 9 deletions

View File

@@ -221,7 +221,7 @@ if (setting('reports') and ref {} eq ref setting('reports')) {
config->{'reports'} = [ @{setting('system_reports')}, @{setting('reports')} ];
# set swagger ui location
config->{plugins}->{Swagger}->{ui_dir}
= dir(dist_dir('App-Netdisco'), 'swagger-ui')->absolute;
#config->{plugins}->{Swagger}->{ui_dir} =
#dir(dist_dir('App-Netdisco'), 'share', 'public', 'swagger-ui')->absolute;
true;