update version of swagger-ui to 3.20.3

This commit is contained in:
Oliver Gorwits
2018-12-31 19:56:10 +00:00
parent 4691808fa6
commit 0866747688
14 changed files with 255 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ use Dancer ':script';
use Path::Class 'dir';
use Net::Domain 'hostdomain';
use File::ShareDir 'dist_dir';
BEGIN {
if (setting('include_paths') and ref [] eq ref setting('include_paths')) {
@@ -202,4 +203,8 @@ if (setting('reports') and ref {} eq ref setting('reports')) {
# add system_reports onto 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;
true;