-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
10 changes: 3 additions & 7 deletions
10
src/main/java/co/orange/ddanzi/controller/HealthCheckController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
package co.orange.ddanzi.controller; | ||
|
||
import co.orange.ddanzi.common.response.ApiResponse; | ||
import co.orange.ddanzi.common.response.Success; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
|
||
@Controller | ||
public class HealthCheckController { | ||
|
||
@GetMapping("/health-check") | ||
@ResponseStatus(HttpStatus.OK) | ||
public ApiResponse<?> healthCheck() { | ||
return ApiResponse.onSuccess(Success.SUCCESS,null); | ||
public ResponseEntity<String> healthCheck() { | ||
return ResponseEntity.ok("OK"); | ||
} | ||
|
||
} |