Init first files

This commit is contained in:
2026-02-12 09:09:13 +01:00
parent 6535699b0e
commit d1d8ae43a4
61 changed files with 2424 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from fastapi import APIRouter
from sqlalchemy import text
from app.core.db import SessionLocal
router = APIRouter()
@router.get("/healthz")
async def healthz() -> dict:
return {"status": "ok"}
@router.get("/readyz")
async def readyz() -> dict:
async with SessionLocal() as session:
await session.execute(text("SELECT 1"))
return {"status": "ready"}