mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 21:32:27 +00:00
Use the bridge.healthCheck method
This commit is contained in:
parent
86769eedea
commit
689362b24f
1 changed files with 7 additions and 2 deletions
|
@ -32,8 +32,13 @@ public class HealthCheckHandler extends AbstractHandler {
|
|||
Log.info("GET <- /api/health_check");
|
||||
baseRequest.setHandled(true);
|
||||
response.setContentType("text/plain");
|
||||
response.setStatus(200);
|
||||
response.getWriter().println("ok");
|
||||
if (bridge.healthCheck()) {
|
||||
response.setStatus(200);
|
||||
response.getWriter().println("ok");
|
||||
} else {
|
||||
response.setStatus(500);
|
||||
response.getWriter().println("failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue