Skip to content

Commit be96b95

Browse files
mmaudetclaude
andcommitted
fix: Fix NameError in root endpoint and update API version to 1.1.0
- Fix undefined API_TITLE and API_VERSION constants in root endpoint - Use settings.api_title and settings.api_version instead - Update default API version from 1.0.0 to 1.1.0 in config.py 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0d859ea commit be96b95

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ async def root():
619619
Returns basic API information and usage examples
620620
"""
621621
return {
622-
"api": API_TITLE,
623-
"version": API_VERSION,
622+
"api": settings.api_title,
623+
"version": settings.api_version,
624624
"documentation": {
625625
"swagger": "/docs",
626626
"redoc": "/redoc",

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Settings(BaseSettings):
4343
# API Configuration
4444
# ==========================================
4545
api_version: str = Field(
46-
default="1.0.0",
46+
default="1.1.0",
4747
description="API version number"
4848
)
4949
api_title: str = Field(

0 commit comments

Comments
 (0)