Skip to content

Commit

Permalink
api url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pan85 committed Jan 5, 2017
1 parent a5d9cd8 commit 880cf6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ApiDocGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ protected function setMainSwaggerInfo()
'version' => config('apidoc.apiVersion'),
'title' => config('apidoc.apiTitle'),
];
$this->swagger['host'] = env('APP_URL');

$this->swagger['host'] = str_replace(['http://', 'https://'], '', env('APP_URL'));
$this->swagger['basePath'] = '/'.trim(config('apidoc.apiBasePath'), '/').'/';
$this->swagger['tags'] = [];
}
Expand Down

0 comments on commit 880cf6e

Please sign in to comment.