Skip to content

Commit

Permalink
Merge pull request #373 from dedoc/fix/default-api-route-resolver-reg…
Browse files Browse the repository at this point in the history
…ister-issue

Fix default API route resolver register order issue
  • Loading branch information
romalytvynenko committed May 15, 2024
2 parents fad3fb9 + f0b2ac6 commit 1160788
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ScrambleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,11 @@ public function bootingPackage()
Scramble::registerApi('default', config('scramble'))
->routes(Scramble::$routeResolver)
->afterOpenApiGenerated(Scramble::$openApiExtender);

$this->app->booted(function () {
Scramble::getGeneratorConfig('default')
->routes(Scramble::$routeResolver)
->afterOpenApiGenerated(Scramble::$openApiExtender);
});
}
}

0 comments on commit 1160788

Please sign in to comment.