From 67fbe51c570abe1ece6651ae6a037662e9012881 Mon Sep 17 00:00:00 2001 From: Deuchnord Date: Mon, 28 Oct 2024 11:16:59 +0100 Subject: [PATCH] fix: reintroduce the `show_webby` parameter in Laravel config (#6741) --- src/Laravel/config/api-platform.php | 1 + src/Laravel/resources/views/swagger-ui.blade.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Laravel/config/api-platform.php b/src/Laravel/config/api-platform.php index 2d4b68783aa..bd1db3114ad 100644 --- a/src/Laravel/config/api-platform.php +++ b/src/Laravel/config/api-platform.php @@ -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 diff --git a/src/Laravel/resources/views/swagger-ui.blade.php b/src/Laravel/resources/views/swagger-ui.blade.php index acbe282d933..4a9436c6e0c 100644 --- a/src/Laravel/resources/views/swagger-ui.blade.php +++ b/src/Laravel/resources/views/swagger-ui.blade.php @@ -14,6 +14,7 @@
+ @if (config('api-platform.show_webby', true))
@@ -209,6 +210,7 @@ + @endif