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 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();
|
||||
|
|
Loading…
Reference in New Issue