Skip to content

Commit

Permalink
chore: Clean config.py from the API
Browse files Browse the repository at this point in the history
  • Loading branch information
iusztinpaul committed Apr 27, 2023
1 parent 6a1e665 commit 56e6e74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app-api/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class Settings(BaseSettings):
# - Enable uvicorn reloading.
RELOAD: bool = False

API_V1_STR: str = "/api/v1"
PROJECT_NAME: str = "Energy Consumption API"

# Google Cloud Platform credentials
Expand Down
2 changes: 1 addition & 1 deletion app-api/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def health() -> dict:
Health check endpoint.
"""

health_data = schemas.Health(name=get_settings().PROJECT_NAME, api_version="1.0.0")
health_data = schemas.Health(name=get_settings().PROJECT_NAME, api_version=get_settings().VERSION)

return health_data.dict()

Expand Down

0 comments on commit 56e6e74

Please sign in to comment.