1 parent 4d921da commit 2f606f2Copy full SHA for 2f606f2
1 file changed
src/main/java/pl/darsonn/knowledgegraphapi/HealthController.java
@@ -1,15 +1,15 @@
1
package pl.darsonn.knowledgegraphapi;
2
3
-import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
4
import org.springframework.web.bind.annotation.GetMapping;
5
import org.springframework.web.bind.annotation.RestController;
6
import org.springframework.web.bind.annotation.RequestMapping;
7
8
@RestController
9
-@RequestMapping("/")
+@RequestMapping("/health")
10
class HealthController {
11
- @GetMapping()
12
- HttpStatus returnHealthy() {
13
- return HttpStatus.OK;
+ @GetMapping
+ ResponseEntity<Void> returnHealthy() {
+ return ResponseEntity.ok().build();
14
}
15
-}
+}
0 commit comments