Initial MVP skeleton with auth, chat persistence, UI and text LLM integration

This commit is contained in:
2026-03-10 16:58:02 +00:00
commit 105b8b3db4
40 changed files with 1984 additions and 0 deletions

20
backend/app/api/health.py Normal file
View File

@@ -0,0 +1,20 @@
from fastapi import APIRouter
from sqlalchemy import text
from sqlalchemy import create_engine
from app.core.config import settings
router = APIRouter()
@router.get("/health")
def health() -> dict:
return {"status": "ok", "service": "backend"}
@router.get("/ready")
def ready() -> dict:
engine = create_engine(settings.database_url, pool_pre_ping=True)
with engine.connect() as conn:
conn.execute(text("SELECT 1"))
return {"status": "ready", "database": "ok"}