Skip to content

Commit

Permalink
- Fix endpoint url
Browse files Browse the repository at this point in the history
  • Loading branch information
haideriqbal committed Jul 10, 2024
1 parent 943dccd commit c27e168
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
Expand All @@ -15,6 +16,7 @@
import java.nio.charset.StandardCharsets;

@RestController
@RequestMapping("/api/v2")
public class HealthCheckController {

@Value("${solr.url}")
Expand All @@ -31,7 +33,7 @@ public HealthCheckController(RestTemplate restTemplate) {
this.restTemplate = restTemplate;
}

@GetMapping("/health")
@RequestMapping("/health")
public ResponseEntity<String> checkHealth() {
if (!checkNeo4j()) {
return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE).body("Neo4j is not initialized.");
Expand Down

0 comments on commit c27e168

Please sign in to comment.