freeleaps-ops/apps/gitea-webhook-ambassador-python/app/handlers/health.py

21 lines
487 B
Python

"""
Health check handler
Provides health check endpoints for the API
"""
from fastapi import APIRouter
from app.config import get_settings
from datetime import datetime
router = APIRouter()
@router.get("/health")
async def health_check():
"""Health check endpoint"""
settings = get_settings()
return {
"status": "healthy",
"service": "Gitea Webhook Ambassador",
"version": settings.version,
"timestamp": datetime.utcnow().isoformat()
}