From 37eeb55dde5c5a5546d9e8c916c157f6bdbba400 Mon Sep 17 00:00:00 2001 From: Arachneee Date: Thu, 8 Aug 2024 22:43:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=96=B4=EB=93=9C=EB=AF=BC=20=EA=B6=8C?= =?UTF-8?q?=ED=95=9C=20=ED=99=95=EC=9D=B8=20=EB=B6=88=EA=B0=80=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/server/haengdong/presentation/EventController.java | 2 +- .../java/server/haengdong/docs/EventControllerDocsTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/server/haengdong/presentation/EventController.java b/server/src/main/java/server/haengdong/presentation/EventController.java index 6c143b181..a5cb8ab80 100644 --- a/server/src/main/java/server/haengdong/presentation/EventController.java +++ b/server/src/main/java/server/haengdong/presentation/EventController.java @@ -90,7 +90,7 @@ public ResponseEntity loginEvent( .build(); } - @GetMapping("/api/events/{eventId}/auth") + @PostMapping("/api/events/{eventId}/auth") public ResponseEntity authenticate(@PathVariable("eventId") String token) { return ResponseEntity.ok().build(); } diff --git a/server/src/test/java/server/haengdong/docs/EventControllerDocsTest.java b/server/src/test/java/server/haengdong/docs/EventControllerDocsTest.java index 67095aae9..df9d75326 100644 --- a/server/src/test/java/server/haengdong/docs/EventControllerDocsTest.java +++ b/server/src/test/java/server/haengdong/docs/EventControllerDocsTest.java @@ -282,7 +282,7 @@ void findActions() throws Exception { @Test void authenticateTest() throws Exception { String token = "TOKEN"; - mockMvc.perform(get("/api/events/{eventId}/auth", token) + mockMvc.perform(post("/api/events/{eventId}/auth", token) .cookie(EVENT_COOKIE)) .andDo(print()) .andExpect(status().isOk())