chore: make sure that there is only one app
This commit is contained in:
@@ -8,14 +8,14 @@ from typing import Optional
|
||||
from fastapi import APIRouter, Depends
|
||||
|
||||
from src.core.SeriesApp import SeriesApp
|
||||
from src.server.utils.dependencies import get_optional_series_app
|
||||
from src.server.utils.dependencies import get_series_app
|
||||
|
||||
router = APIRouter(prefix="/health", tags=["health"])
|
||||
|
||||
|
||||
@router.get("")
|
||||
async def health_check(
|
||||
series_app: Optional[SeriesApp] = Depends(get_optional_series_app)
|
||||
series_app: Optional[SeriesApp] = Depends(get_series_app)
|
||||
):
|
||||
"""Health check endpoint for monitoring."""
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user