update
This commit is contained in:
parent
b9f17e5a0b
commit
a76b823c49
|
@ -39,6 +39,8 @@ public class HealthResource extends ApiResource {
|
||||||
|
|
||||||
public static final String mapping = "/health";
|
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 static final ApiSignature signature = handles(mapping).with(method(GET).produces(application_json));
|
||||||
|
|
||||||
private HealthManager manager;
|
private HealthManager manager;
|
||||||
|
@ -95,7 +97,7 @@ public class HealthResource extends ApiResource {
|
||||||
|
|
||||||
String contextpath = req.getContextPath();
|
String contextpath = req.getContextPath();
|
||||||
log.info("context path is {}", req.getContextPath());
|
log.info("context path is {}", req.getContextPath());
|
||||||
if (contextpath.endsWith("/readiness"))
|
if (contextpath.endsWith(readiness_mapping))
|
||||||
response = readiness();
|
response = readiness();
|
||||||
else
|
else
|
||||||
RequestError.resource_notfound_error.fire();
|
RequestError.resource_notfound_error.fire();
|
||||||
|
|
Loading…
Reference in New Issue