Skip to content

Commit

Permalink
fix: change return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Sep 1, 2024
1 parent 5f5f020 commit 00a116e
Showing 1 changed file with 3 additions and 7 deletions.
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");
}

}

0 comments on commit 00a116e

Please sign in to comment.