From a7cb7b78f079d05f5a41cf64b66c1818e830d916 Mon Sep 17 00:00:00 2001 From: injoon2019 Date: Wed, 30 Oct 2024 23:50:04 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B3=B4=ED=8B=80=EB=8D=94=EB=B0=9B?= =?UTF-8?q?=EA=B8=B0=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bottles/api/bottle/controller/BottleControllerV2.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/kotlin/com/nexters/bottles/api/bottle/controller/BottleControllerV2.kt b/api/src/main/kotlin/com/nexters/bottles/api/bottle/controller/BottleControllerV2.kt index f4a154a..1664a81 100644 --- a/api/src/main/kotlin/com/nexters/bottles/api/bottle/controller/BottleControllerV2.kt +++ b/api/src/main/kotlin/com/nexters/bottles/api/bottle/controller/BottleControllerV2.kt @@ -8,6 +8,7 @@ import com.nexters.bottles.api.global.interceptor.AuthRequired import com.nexters.bottles.api.global.resolver.AuthUserId import io.swagger.annotations.ApiOperation import org.springframework.web.bind.annotation.GetMapping +import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController @@ -40,7 +41,7 @@ class BottleControllerV2( // TODO: 따닥 방지 @ApiOperation("마이페이지 - 추가로 보틀 받기") - @GetMapping("/additional-random") + @PostMapping("/additional-random") @AuthRequired fun getAdditionalRandomBottle(@AuthUserId userId: Long) { return bottleFacadeV2.getAdditionalRandomBottle(userId)