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

allow HEAD method for /heartbeat #874

Merged
merged 1 commit into from
Apr 16, 2024
Merged

allow HEAD method for /heartbeat #874

merged 1 commit into from
Apr 16, 2024

Conversation

tschaume
Copy link
Member

@munrojm it would good for cloudflare healthchecks to also allow the /heartbeat endpoint to be pinged with a HEAD request. I'm not sure whether adding another @app.head() is the right approach or we should instead use

@app.api_route("/heartbeat", methods=["GET", "HEAD", "OPTIONS"])

@munrojm it would good for cloudflare healthchecks to also allow the `/heartbeat` endpoint to be pinged with a HEAD request. I'm not sure whether adding another `@app.head()` is the right approach or we should instead use

```
@app.api_route("/heartbeat", methods=["GET", "HEAD", "OPTIONS"])
```
@tschaume tschaume requested a review from munrojm October 20, 2023 20:38
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5accaf7) 87.78% compared to head (3b2a4ac) 87.78%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #874   +/-   ##
=======================================
  Coverage   87.78%   87.78%           
=======================================
  Files          44       44           
  Lines        3610     3611    +1     
=======================================
+ Hits         3169     3170    +1     
  Misses        441      441           
Files Coverage Δ
src/maggma/api/API.py 82.22% <100.00%> (+0.40%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@munrojm munrojm merged commit a03bc7c into main Apr 16, 2024
10 checks passed
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.

2 participants