mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Use the bridge.healthCheck method
This commit is contained in:
+7
-2
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user