Spaces:
Running
Running
File size: 517 Bytes
556ce05 | 1 2 3 4 5 6 7 8 9 10 11 | # PATCH for main.py - add the detail route
# Apply this by adding after line 397 in main.py:
#
# @app.get("/api/match/{event_id}/detail")
# def api_match_detail(event_id:int, url:str=Query(default=None)):
# """Get match detail. Optional 'url' param with full bongda URL (with slug) for HTML scraping."""
# from match_detail import fetch_match_detail, fetch_match_detail_by_url
# if url:
# return JSONResponse(fetch_match_detail_by_url(url))
# return JSONResponse(fetch_match_detail(event_id))
|