Skip to content

Commit

Permalink
Fix swagger assets path gettering (#223)
Browse files Browse the repository at this point in the history
Closes #222
  • Loading branch information
DarkaOnLine authored Sep 4, 2019
1 parent 085ca35 commit 32b312a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ function swagger_ui_dist_path($asset = null)
'swagger-ui.js.map',
];

$path = base_path(config('l5-swagger.paths.swagger_ui_assets_path'));
$path = base_path(
config('l5-swagger.paths.swagger_ui_assets_path', 'vendor/swagger-api/swagger-ui/dist/')
);

if (! $asset) {
return realpath($path);
Expand Down

0 comments on commit 32b312a

Please sign in to comment.