Старт

This commit is contained in:
2026-03-13 14:39:43 +08:00
commit a2cc480644
88 changed files with 18526 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from fastapi import APIRouter, Depends
from sqlalchemy.orm import Session
from .. import crud, schemas
from ..database import get_db
router = APIRouter(prefix="/stats", tags=["stats"])
@router.get("/", response_model=schemas.SuccessResponse)
def get_stats(db: Session = Depends(get_db)):
stats = crud.get_stats(db)
return schemas.SuccessResponse(data=stats)