35 lines
778 B
Python
35 lines
778 B
Python
from fastapi import APIRouter, Depends, HTTPException
|
|
from core.database import fake_users_db
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/sport")
|
|
async def get_sports():
|
|
"""Get list of English sports"""
|
|
sports = [
|
|
"Football",
|
|
"Cricket",
|
|
"Rugby Union",
|
|
"Rugby League",
|
|
"Tennis",
|
|
"Golf",
|
|
"Boxing",
|
|
"Athletics",
|
|
"Field Hockey",
|
|
"Netball",
|
|
"Squash",
|
|
"Badminton",
|
|
"Rowing",
|
|
"Cycling",
|
|
"Horse Racing"
|
|
]
|
|
|
|
return {
|
|
"message": "Sports list retrieved successfully",
|
|
"data": sports,
|
|
"metadata": {
|
|
"total_count": len(sports),
|
|
"category": "English sports",
|
|
"source": "demo_database"
|
|
}
|
|
} |