Split monorepo into separate units for future independent repositories: - media-server/: Standalone FastAPI server with own README, requirements, config example, and CLAUDE.md - haos-integration/: HACS-ready Home Assistant integration with hacs.json, own README, and CLAUDE.md Both components now have their own .gitignore files and can be easily extracted into separate repositories. Also adds custom icon support for scripts configuration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
462 B
Python
23 lines
462 B
Python
"""Health check endpoint."""
|
|
|
|
import platform
|
|
from typing import Any
|
|
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter(prefix="/api", tags=["health"])
|
|
|
|
|
|
@router.get("/health")
|
|
async def health_check() -> dict[str, Any]:
|
|
"""Health check endpoint - no authentication required.
|
|
|
|
Returns:
|
|
Health status and server information
|
|
"""
|
|
return {
|
|
"status": "healthy",
|
|
"platform": platform.system(),
|
|
"version": "1.0.0",
|
|
}
|