Skip to content

Commit 0aacb98

Browse files
committed
feat: change response type of health check
1 parent 2c44a6f commit 0aacb98

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/bitnagil/bitnagil_backend/TestController.java renamed to src/main/java/bitnagil/bitnagil_backend/HealthCheckController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package bitnagil.bitnagil_backend;
22

3+
import org.springframework.http.ResponseEntity;
34
import org.springframework.web.bind.annotation.GetMapping;
45
import org.springframework.web.bind.annotation.RestController;
56

67
@RestController
7-
public class TestController {
8+
public class HealthCheckController {
89

910
@GetMapping("/health-check")
10-
public String newURI() {
11-
return "Github Actions로 배포 성공";
11+
public ResponseEntity<String> health() {
12+
return ResponseEntity.ok("OK");
1213
}
1314
}

0 commit comments

Comments
 (0)