From ffaa11bc16a8c1b73e4ce1c3181da035c7c073ff Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Tue, 2 Apr 2024 17:22:22 +0900 Subject: [PATCH] BUG :: permit --- .../domain/container/adapter/ContainerWebAdapter.kt | 4 +++- .../infrastructure/security/config/RequestPermitConfig.kt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/ContainerWebAdapter.kt b/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/ContainerWebAdapter.kt index ad486bc..8794425 100644 --- a/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/ContainerWebAdapter.kt +++ b/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/ContainerWebAdapter.kt @@ -1,17 +1,19 @@ package xquare.app.xquareinfra.domain.container.adapter import org.springframework.web.bind.annotation.PostMapping +import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestParam import org.springframework.web.bind.annotation.RestController import xquare.app.xquareinfra.domain.container.adapter.dto.request.SyncContainerRequest import xquare.app.xquareinfra.domain.container.application.port.`in`.SyncContainerUseCase import xquare.app.xquareinfra.domain.container.domain.ContainerEnvironment +@RequestMapping("/container") @RestController class ContainerWebAdapter( private val syncContainerUseCase: SyncContainerUseCase ) { - @PostMapping("/sync-container") + @PostMapping("/sync") fun syncContainer( @RequestParam("deploy_name", required = true) deployName: String, diff --git a/src/main/kotlin/xquare/app/xquareinfra/infrastructure/security/config/RequestPermitConfig.kt b/src/main/kotlin/xquare/app/xquareinfra/infrastructure/security/config/RequestPermitConfig.kt index 728061b..a71a7d8 100644 --- a/src/main/kotlin/xquare/app/xquareinfra/infrastructure/security/config/RequestPermitConfig.kt +++ b/src/main/kotlin/xquare/app/xquareinfra/infrastructure/security/config/RequestPermitConfig.kt @@ -15,6 +15,7 @@ class RequestPermitConfig : SecurityConfigurerAdapter