Skip to content

Commit 2f606f2

Browse files
committed
Changed path to health request
1 parent 4d921da commit 2f606f2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package pl.darsonn.knowledgegraphapi;
22

3-
import org.springframework.http.HttpStatus;
3+
import org.springframework.http.ResponseEntity;
44
import org.springframework.web.bind.annotation.GetMapping;
55
import org.springframework.web.bind.annotation.RestController;
66
import org.springframework.web.bind.annotation.RequestMapping;
77

88
@RestController
9-
@RequestMapping("/")
9+
@RequestMapping("/health")
1010
class HealthController {
11-
@GetMapping()
12-
HttpStatus returnHealthy() {
13-
return HttpStatus.OK;
11+
@GetMapping
12+
ResponseEntity<Void> returnHealthy() {
13+
return ResponseEntity.ok().build();
1414
}
15-
}
15+
}

0 commit comments

Comments
 (0)