From 565375d24b06a8fabd56dd781ed8b6925875fe57 Mon Sep 17 00:00:00 2001 From: DoodlesOnMyFood <57210973+DoodlesOnMyFood@users.noreply.github.com> Date: Wed, 7 Feb 2024 02:13:22 +0900 Subject: [PATCH] =?UTF-8?q?[FO-900]=20swagger=20=EB=AC=B4=ED=95=9C=20?= =?UTF-8?q?=EB=A3=A8=ED=94=84=20=EC=98=A4=EB=A5=98=20=ED=94=BD=EC=8A=A4=20?= =?UTF-8?q?(#402)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/kotlin/com/fone/filmone/config/SwaggerConfig.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main/kotlin/com/fone/filmone/config/SwaggerConfig.kt b/server/src/main/kotlin/com/fone/filmone/config/SwaggerConfig.kt index 585cf0fa..f325ba57 100644 --- a/server/src/main/kotlin/com/fone/filmone/config/SwaggerConfig.kt +++ b/server/src/main/kotlin/com/fone/filmone/config/SwaggerConfig.kt @@ -114,7 +114,9 @@ class SwaggerConfig( ) ).consumes(getConsumeContentTypes()).produces(getProduceContentTypes()) .apiInfo(apiInfo()).select().apis(RequestHandlerSelectors.basePackage("com.fone")) - .paths(PathSelectors.ant("/**")).build() + .paths(PathSelectors.ant("/**")) + .build() + .pathMapping("/") .ignoredParameterTypes(Principal::class.java) .securityContexts(listOf(securityContext())) .securitySchemes(listOf(apiKey()))