mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-31 04:10:38 +00:00
chore: add /ready api for health checking (#5124)
* chore: add ready endpoint for health checking * chore: add test
This commit is contained in:
@@ -638,10 +638,15 @@ impl HttpServer {
|
||||
router.clone()
|
||||
};
|
||||
|
||||
router = router.route(
|
||||
"/health",
|
||||
routing::get(handler::health).post(handler::health),
|
||||
);
|
||||
router = router
|
||||
.route(
|
||||
"/health",
|
||||
routing::get(handler::health).post(handler::health),
|
||||
)
|
||||
.route(
|
||||
"/ready",
|
||||
routing::get(handler::health).post(handler::health),
|
||||
);
|
||||
|
||||
router = router.route("/status", routing::get(handler::status));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user