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