|
|
|
@ -39,6 +39,8 @@ public class HealthResource extends ApiResource {
|
|
|
|
|
|
|
|
|
|
public static final String mapping = "/health";
|
|
|
|
|
|
|
|
|
|
public static final String readiness_mapping = "/readiness";
|
|
|
|
|
|
|
|
|
|
private static final ApiSignature signature = handles(mapping).with(method(GET).produces(application_json));
|
|
|
|
|
|
|
|
|
|
private HealthManager manager;
|
|
|
|
@ -95,7 +97,7 @@ public class HealthResource extends ApiResource {
|
|
|
|
|
|
|
|
|
|
String contextpath = req.getContextPath();
|
|
|
|
|
log.info("context path is {}", req.getContextPath());
|
|
|
|
|
if (contextpath.endsWith("/readiness"))
|
|
|
|
|
if (contextpath.endsWith(readiness_mapping))
|
|
|
|
|
response = readiness();
|
|
|
|
|
else
|
|
|
|
|
RequestError.resource_notfound_error.fire();
|
|
|
|
|