From c3732ef33e3d856d1e7a58dfb56a9cc7cca48d08 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Wed, 4 Mar 2026 00:02:55 -0600 Subject: [PATCH] fix: remove stub live_update_pitching endpoint (#11) The /live-update/pitching POST endpoint was a placeholder that only validated auth and returned the input unchanged. No pitching processing logic existed anywhere in the codebase. Removed the dead endpoint. Co-Authored-By: Claude Sonnet 4.6 --- app/routers_v2/scouting.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/routers_v2/scouting.py b/app/routers_v2/scouting.py index 0e51f87..2c44bba 100644 --- a/app/routers_v2/scouting.py +++ b/app/routers_v2/scouting.py @@ -36,14 +36,3 @@ async def get_player_keys(player_id: list = Query(default=None)): return_val = {"count": len(all_keys), "keys": [dict(x) for x in all_keys]} return return_val - - -@router.post("/live-update/pitching") -def live_update_pitching(files: BattingFiles, token: str = Depends(oauth2_scheme)): - if not valid_token(token): - logging.warning("Bad Token: [REDACTED]") - raise HTTPException( - status_code=401, detail="You are not authorized to initiate live updates." - ) - - return files.dict() -- 2.25.1