Skip to content

Commit

Permalink
#94010 Fixed url and default version
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Bereza committed Nov 3, 2022
1 parent 0a442ee commit 5490f88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/serve-stoplight.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

'urls' => [
'v1' => [
'url' => 'api-docs/v1/index.yaml',
'url' => '/api-docs/v1/index.yaml',
'name' => 'API v1',
],
],
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/StoplightController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class StoplightController
{
public function documentation(?string $version): View
public function documentation(?string $version = null): View
{
$version = $version ?? config('serve-stoplight.default_version');

Expand Down

0 comments on commit 5490f88

Please sign in to comment.