NYPL-Simplified / circulation

Circulation manager for Library Simplified
Other
19 stars 19 forks source link

Werkzeug error #1837

Closed thinkwebengineer closed 1 year ago

thinkwebengineer commented 1 year ago

Description

Add POST route for '/' endpoint

Motivation and Context

A werkzeug 405 error is the most common error across all New Relic instances of the CM. This specifically targets and handles that error.

How Has This Been Tested?

A test was added to POST to '/' and verify 405 response code.

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Base: 92.54% // Head: 92.54% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (c4ed93b) compared to base (e32ee82). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1837 +/- ## ======================================== Coverage 92.54% 92.54% ======================================== Files 215 215 Lines 43545 43548 +3 ======================================== + Hits 40300 40303 +3 Misses 3245 3245 ``` | [Impacted Files](https://codecov.io/gh/NYPL-Simplified/circulation/pull/1837?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified) | Coverage Δ | | |---|---|---| | [api/routes.py](https://codecov.io/gh/NYPL-Simplified/circulation/pull/1837/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified#diff-YXBpL3JvdXRlcy5weQ==) | `90.90% <100.00%> (+0.05%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.