Skip to content

Commit

Permalink
[SAMBAD-312] 토큰 검증용 API 추가 (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkjsw17 authored Aug 28, 2024
1 parent 6f8671f commit 007725f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public ResponseEntity<UserResponse> getUser(@UserId Long userId) {
return ResponseEntity.ok(response);
}

@Operation(summary = "토큰 유효성 조회", description = "오직 토큰의 유효성을 검증하기 위한 validation API 입니다.")
@ApiResponse(responseCode = "202", description = "성공")
@ApiResponse(responseCode = "401", description = "AUTHENTICATION_REQUIRED")
@GetMapping("/validate-token")
public ResponseEntity<Void> validateToken() {
return ResponseEntity.accepted().build();
}

@Operation(
summary = "온보딩 완료",
description = "온보딩을 완료함으로써, 더 이상 온보딩 페이지로 이동하지 않도록 수정합니다."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import jakarta.persistence.EntityManager;

@EntityScan(basePackages = "org.depromeet.sambad.moring.domain")
@EnableJpaRepositories(basePackages = "org.depromeet.sambad.moring.domain")
@EntityScan(basePackages = "org.depromeet.sambad.moring")
@EnableJpaRepositories(basePackages = "org.depromeet.sambad.moring")
public class JpaConfig implements MoringConfig {

private final EntityManager entityManager;
Expand Down

0 comments on commit 007725f

Please sign in to comment.