mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
20 lines
379 B
Python
20 lines
379 B
Python
from fastapi import APIRouter
|
|
|
|
from app.config import settings
|
|
|
|
router = APIRouter(tags=["health"])
|
|
|
|
|
|
@router.get("/")
|
|
async def root():
|
|
return {"message": f"{settings.app_name} backend running 🚀"}
|
|
|
|
|
|
@router.get("/health")
|
|
async def health_check():
|
|
return {
|
|
"status": "healthy",
|
|
"app": settings.app_name,
|
|
"version": settings.app_version,
|
|
}
|