15 lines
383 B
Python
15 lines
383 B
Python
from fastapi import APIRouter, Depends
|
|
from sqlalchemy.orm import Session
|
|
|
|
from app.db.session import get_db
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("")
|
|
def health_check(db: Session = Depends(get_db)):
|
|
"""
|
|
Health check endpoint for the API
|
|
"""
|
|
# Simple health check that ensures the database connection is working
|
|
return {"status": "healthy", "database": "connected"} |