mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 13:23:23 +08:00
15 lines
313 B
Python
15 lines
313 B
Python
from fastapi import APIRouter, Depends
|
|
|
|
from config import Settings, get_settings
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/ping")
|
|
async def pong(settings: Settings = Depends(get_settings)):
|
|
return {
|
|
"ping": "pong!",
|
|
"environment": settings.environment,
|
|
"testing": settings.testing,
|
|
}
|