File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
src/main/java/clap/server/adapter/inbound/web/auth Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ package clap .server .adapter .inbound .web .auth ;
2+
3+ import clap .server .adapter .inbound .web .dto .auth .ReissueTokenResponse ;
4+ import clap .server .application .port .inbound .auth .ReissueTokenUsecase ;
5+ import clap .server .common .annotation .architecture .WebAdapter ;
6+ import io .swagger .v3 .oas .annotations .Operation ;
7+ import io .swagger .v3 .oas .annotations .tags .Tag ;
8+ import lombok .RequiredArgsConstructor ;
9+ import org .springframework .http .ResponseEntity ;
10+ import org .springframework .web .bind .annotation .PostMapping ;
11+ import org .springframework .web .bind .annotation .RequestHeader ;
12+ import org .springframework .web .bind .annotation .RequestMapping ;
13+
14+ @ Tag (name = "토큰 재발급" )
15+ @ WebAdapter
16+ @ RequiredArgsConstructor
17+ @ RequestMapping ("/api/auths" )
18+ public class ReissueTokenController {
19+ private final ReissueTokenUsecase reissueTokenUsecase ;
20+
21+ @ Operation (summary = "토큰 재발급 API" )
22+ @ PostMapping ("/reissuance" )
23+ public ResponseEntity <ReissueTokenResponse > login (@ RequestHeader String refreshToken ) {
24+ return ResponseEntity .ok (reissueTokenUsecase .reissueToken (refreshToken ));
25+ }
26+ }
You can’t perform that action at this time.
0 commit comments