added health endpoints

This commit is contained in:
2026-06-15 21:21:01 -04:00
parent b126987b63
commit 2e68c83021
5 changed files with 245 additions and 1 deletions
+2 -1
View File
@@ -14,7 +14,7 @@ from sqlalchemy.orm import Session
from python.common import configure_logger
from python.ebook_search.api.bm25_tasks import cancel_bm25_refresh
from python.ebook_search.api.routes import admin_router, page_router, search_router
from python.ebook_search.api.routes import admin_router, health_router, page_router, search_router
from python.ebook_search.api.web import STATIC_DIR
from python.ebook_search.bm25_corpus import ensure_bm25_corpus
from python.ebook_search.config import load_config
@@ -59,6 +59,7 @@ def create_app() -> FastAPI:
)
app.include_router(admin_router)
app.include_router(health_router)
app.include_router(page_router)
app.include_router(search_router)