From d4ec16c336133b9b418310630cd8c97b5379aa2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tanghe?= Date: Tue, 22 Oct 2024 10:23:03 +0200 Subject: [PATCH 1/2] fix: reintroduce the `show_webby` parameter in Laravel config --- src/Laravel/resources/views/swagger-ui.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Laravel/resources/views/swagger-ui.blade.php b/src/Laravel/resources/views/swagger-ui.blade.php index acbe282d93..4a9436c6e0 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
From ceb41ff67023c85d5b0649928bd4b959c695c98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tanghe?= Date: Fri, 25 Oct 2024 09:54:43 +0200 Subject: [PATCH 2/2] add `show_webby` parameter to the configuration file --- src/Laravel/config/api-platform.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Laravel/config/api-platform.php b/src/Laravel/config/api-platform.php index 2d4b68783a..bd1db3114a 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