Skip to content

Commit

Permalink
feat: add description to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pmareke committed Sep 26, 2024
1 parent f0351cc commit 0a38f49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def lifespan(_app: FastAPI) -> AsyncGenerator:

app = FastAPI(
title=settings.project_name,
description="This is the documentation of the FastAPI template project.",
description=settings.description,
lifespan=lifespan,
openapi_url=settings.openapi_url,
)
Expand Down
1 change: 1 addition & 0 deletions src/common/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Settings(BaseSettings):
openapi_url: str = "/openapi.json"
api_v1_prefix: str = "/api/v1"
project_name: str = "FastAPI Template"
description: str = "This is the documentation of the FastAPI template project."
logger_name: str = "server"


Expand Down

0 comments on commit 0a38f49

Please sign in to comment.