Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create health.ts #18

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Create health.ts #18

merged 1 commit into from
Oct 8, 2024

Conversation

Aryam2121
Copy link
Contributor

@Aryam2121 Aryam2121 commented Oct 7, 2024

Health Router:

The health check endpoint (/health) uses a GET request. It attempts to check the database connection. If it fails, it catches the error and returns an unhealthy status with an error message. If the check passes, it returns a JSON response with the health status, application version, and uptime.solve issue #3

All Submissions:

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

After these steps, you're ready to open a pull request.

a. Give a descriptive title to your PR.

b. Describe your changes.

c. Put `closes #3` in your comment to auto-close the issue that your PR fixes (if such).

Health Router:

The health check endpoint (/health) uses a GET request.
It attempts to check the database connection. If it fails, it catches the error and returns an unhealthy status with an error message.
If the check passes, it returns a JSON response with the health status, application version, and uptime.solve issue visheshrwl#3
@visheshrwl visheshrwl merged commit 3a1b066 into visheshrwl:main Oct 8, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants