Skip to content

Commit

Permalink
chore: Swagger Tag, Operation을 추가한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Aug 3, 2024
1 parent cf5ecdc commit 7cbb34c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
import com.dnd.accompany.domain.auth.oauth.service.OAuthService;
import com.dnd.accompany.domain.auth.service.TokenService;
import com.dnd.accompany.domain.user.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "Auth")
@RestController
@RequestMapping("/api/v1/auth")
@RequiredArgsConstructor
Expand All @@ -24,6 +27,7 @@ public class AuthController {
private final UserService userService;


@Operation(summary = "로그인")
@GetMapping("/sign-in")
public ResponseEntity<Tokens> signIn(LoginRequest loginRequest) {
OAuthUserDataResponse oAuthUserData = oAuthService.login(loginRequest);
Expand Down

0 comments on commit 7cbb34c

Please sign in to comment.