Skip to content

Commit

Permalink
chore: 불필요한 API 제거 (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 authored Sep 14, 2024
1 parent 7ee57aa commit 1d760e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import org.layer.common.annotation.MemberId;
import org.layer.domain.auth.controller.dto.*;
import org.layer.domain.auth.service.AuthService;
import org.layer.domain.jwt.JwtToken;
import org.layer.domain.jwt.service.JwtService;
import org.layer.domain.member.entity.MemberRole;
import org.layer.domain.member.entity.SocialType;
import org.layer.oauth.service.GoogleService;
import org.layer.oauth.service.KakaoService;
Expand Down Expand Up @@ -96,11 +94,4 @@ public String googleTest(@RequestParam("code") String code) {
public Object kakaoLogin(@RequestParam(value = "code", required = false) String code) {
return kakaoService.getToken(code);
}

// 테스트용 임시 컨트롤러입니다. (토큰 없이 접속 가능)
// "/create-token?id=멤버아이디" uri로 get 요청을 보내면 토큰이 발급됩니다.
@GetMapping("/create-token")
public JwtToken authTest(@RequestParam("id") Long memberId) {
return jwtService.issueToken(memberId, MemberRole.USER);
}
}
Binary file not shown.

0 comments on commit 1d760e6

Please sign in to comment.