From 16fac16b4f45d7aea025820584e0c9415cc7905b Mon Sep 17 00:00:00 2001 From: Min-Ho CHO <66549638+chominho96@users.noreply.github.com> Date: Sat, 6 Apr 2024 22:26:04 +0900 Subject: [PATCH] fix: fix url of login info api --- .../unithon/team5/login/controller/LoginController.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/unithon/team5/login/controller/LoginController.java b/src/main/java/unithon/team5/login/controller/LoginController.java index 3dead93..a42c4ea 100644 --- a/src/main/java/unithon/team5/login/controller/LoginController.java +++ b/src/main/java/unithon/team5/login/controller/LoginController.java @@ -3,10 +3,7 @@ import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import unithon.team5.login.dto.JwtTokenResponse; import unithon.team5.login.dto.LoginRequest; import unithon.team5.login.dto.LoginResponse; @@ -15,11 +12,12 @@ @RestController @RequiredArgsConstructor +@RequestMapping("/login") public class LoginController implements LoginControllerDocs { private final LoginService loginService; - @PostMapping("/login/apple") + @PostMapping("/apple") public ResponseEntity registerToken( @Valid @RequestBody final LoginRequest loginRequest ) {