Skip to content

Conversation

@bernardev254
Copy link

Add Health Check Endpoint

Description

This PR introduces a /health endpoint to the Axum server to provide a simple way to verify the server's status. The endpoint responds with a JSON payload:
{ "status": "ok" }

Changes Made

  • Added a new route /health that responds to GET requests.
  • Implemented a health_check handler to return the JSON response.
  • Updated dependencies in Cargo.toml to include serde_json for JSON serialization.
    closes Add Health Check Endpoint #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Health Check Endpoint

1 participant