Skip to content

Commit

Permalink
Make rest endpoint functions async (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfitchett authored Dec 20, 2024
1 parent 7ba0077 commit 3b94daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docker-entrypoint.sh

This file was deleted.

4 changes: 2 additions & 2 deletions src/python_src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


@app.get('/health')
def get_health_status() -> dict[str, str]:
async def get_health_status() -> dict[str, str]:
if not MAX_RATINGS_BY_CODE:
raise HTTPException(status_code=500, detail='Max Rating by Diagnostic Code Lookup table is empty.')

Expand All @@ -40,7 +40,7 @@ def get_health_status() -> dict[str, str]:
# replacing the legacy '/cfi/max-ratings' path that was specific to LHDI cloud.
# This will require new API gateway configuration in the VA.gov cloud environment. For more details, see: https://github.com/department-of-veterans-affairs/abd-vro/issues/3850
@app.post('/disability-max-ratings')
def get_max_ratings(
async def get_max_ratings(
claim_for_increase: MaxRatingsForClaimForIncreaseRequest,
) -> MaxRatingsForClaimForIncreaseResponse:
ratings = []
Expand Down

0 comments on commit 3b94daa

Please sign in to comment.