Skip to content

Commit

Permalink
fix: reintroduce the show_webby parameter in Laravel config (#6741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuchnord authored Oct 28, 2024
1 parent 6f71d4b commit 67fbe51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Laravel/config/api-platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'title' => 'API Platform',
'description' => 'My awesome API',
'version' => '1.0.0',
'show_webby' => true,

'routes' => [
// Global middleware applied to every API Platform routes
Expand Down
2 changes: 2 additions & 0 deletions src/Laravel/resources/views/swagger-ui.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<header>
<a id="logo" href="https://api-platform.com/"><img src="/vendor/api-platform/logo-header.svg" alt="API Platform"></a>
</header>
@if (config('api-platform.show_webby', true))
<div class="web calm"><img src="/vendor/api-platform/web.png"></div>
<svg class="webby_car" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1889.21 582.3">
<g id="Calque_1">
Expand Down Expand Up @@ -209,6 +210,7 @@
</g>
</g>
</svg>
@endif

<div id="swagger-ui" class="api-platform"></div>
<script src="/vendor/api-platform/swagger-ui/swagger-ui-bundle.js"></script>
Expand Down

0 comments on commit 67fbe51

Please sign in to comment.