Add version/build-date status bar to dashboard footer
Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/9efbf677-2d92-487b-abae-9adf0c728f88 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Version endpoint – returns the application version and build date.
|
||||
"""
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.core.config import settings
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("")
|
||||
async def get_version():
|
||||
"""Return application version and build metadata."""
|
||||
return {
|
||||
"version": settings.APP_VERSION,
|
||||
"build_date": settings.BUILD_DATE or None,
|
||||
}
|
||||
Reference in New Issue
Block a user