Files
gh-christianlouis-inboxconv…/backend/app/api/v1/endpoints/version.py
T

19 lines
379 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
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,
}