Skip to content

Commit

Permalink
[api-server-v1] feat: TestTokenController - deprecated (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdtknight committed Oct 18, 2023
1 parent f47f334 commit 6ca0e75
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@

import java.util.ArrayList;
import java.util.List;
import kr.joberchip.server.v1.domain.user.repository.UserRepository;
import kr.joberchip.server.v1.global.security.JwtProvider;
import kr.joberchip.server.v1.global.utils.ApiResponse;
import kr.joberchip.server.v1.domain.user.repository.UserRepository;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@Deprecated
@Slf4j
@RestController
@RequestMapping("/v1/user")
// @RequestMapping("/v1/user")
@RequiredArgsConstructor
public class TestTokenController {
private final UserRepository userRepository;

@GetMapping("/testTokens")
// @GetMapping("/testTokens")
public ResponseEntity<ApiResponse.Result<List<TokenResponse>>> generateTestTokens() {
List<TokenResponse> tokens = new ArrayList<>();

Expand All @@ -33,5 +34,4 @@ public static TokenResponse of(String username, String token) {
return new TokenResponse(username, token);
}
}

}

0 comments on commit 6ca0e75

Please sign in to comment.