Skip to content

Commit

Permalink
refactor: health check 코드 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
haeun1107 committed Aug 3, 2024
1 parent a8fe465 commit 36d9f42
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
16 changes: 16 additions & 0 deletions src/main/java/dgu/aecofarm/config/HealthCheckController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package dgu.aecofarm.config;


import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class HealthCheckController {

@GetMapping("/hi")
private String test() {
return "하은아 성공이야";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,4 @@ private Long extractMemberIdFromToken(String token) {
String memberId = JwtTokenUtil.getLoginId(jwtToken);
return Long.valueOf(memberId); // 추출한 memberId를 Long 타입으로 변환
}

@GetMapping("/hello")
private String test() {
return "성공입니다!!!!!!!";
}
}

0 comments on commit 36d9f42

Please sign in to comment.