Add database health check endpoint#9
Merged
Mohamed-Elshesheny merged 3 commits intoTeamCoderz:mainfrom Feb 18, 2026
Merged
Conversation
Contributor
|
Hey @yousef-v7 — thanks for taking the time to contribute, we appreciate it! Before we proceed with the review, please address the following:
Once updated, we'll be happy to review and get this merged. Let us know if anything is unclear. |
Contributor
Author
|
Updates applied:
Happy to make any further adjustments if needed |
…documentation and consistent status responses.
Contributor
Thank You, @yousef-v7Thank you for your contribution to WordyMe. The database health check endpoint is well-implemented. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While exploring the backend structure, I wanted to contribute a small but useful improvement.
I added a lightweight database health check endpoint at /api/health/db that performs a simple DB ping and returns status, latency, and timestamp.
I used AI mainly for brainstorming ideas, then implemented the feature myself to better understand the routing and backend structure.
How to test
{
"status": "ok",
"db": "up",
"latencyMs": number,
"timestamp": string
}