mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-03-28 17:43:05 +01:00
13 lines
373 B
Python
13 lines
373 B
Python
from fastapi import APIRouter
|
|
|
|
from app.models import StatisticsResponse
|
|
from app.repository import StatisticsRepository
|
|
|
|
router = APIRouter(prefix="/statistics", tags=["statistics"])
|
|
|
|
|
|
@router.get("", response_model=StatisticsResponse)
|
|
async def get_statistics() -> StatisticsResponse:
|
|
data = await StatisticsRepository.get_all()
|
|
return StatisticsResponse(**data)
|