major-domo-database/app/routers_v3/stratplay/__init__.py
Cal Corum 86f8495284
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m32s
feat: Add group_by=sbaplayer to batting, pitching, and fielding endpoints
Enables career-total aggregation by real-world player identity (SbaPlayer)
across all seasons. JOINs StratPlay → Player to access Player.sbaplayer FK,
groups by that FK, and excludes players with null sbaplayer. Also refactors
stratplay router from single file into package and adds integration tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 17:42:14 -06:00

16 lines
503 B
Python

from fastapi import APIRouter
from .plays import router as plays_router
from .batting import router as batting_router
from .pitching import router as pitching_router
from .fielding import router as fielding_router
from .crud import router as crud_router
router = APIRouter(prefix="/api/v3/plays", tags=["plays"])
router.include_router(plays_router)
router.include_router(batting_router)
router.include_router(pitching_router)
router.include_router(fielding_router)
router.include_router(crud_router)