from fastapi import APIRouter from repository import QuestionRepository router = APIRouter( prefix="/statistics", tags=["Statistics"], ) @router.get("/") async def get_class_statistics(): statistics = await QuestionRepository.get_class_statistics() return statistics