Update code in endpoints/turkey.post.py

This commit is contained in:
Backend IM Bot 2025-03-23 08:34:06 +00:00
parent b273326677
commit 3d87ccc9bb

View File

@ -0,0 +1,31 @@
from fastapi import APIRouter, HTTPException
states = [
"Auvergne-Rhône-Alpes",
"Bourgogne-Franche-Comté",
"Bretagne",
"Centre-Val de Loire",
"Corse",
"Grand Est",
"Hauts-de-France",
"Île-de-France",
"Normandie",
"Nouvelle-Aquitaine",
"Occitanie",
"Pays de la Loire",
"Provence-Alpes-Côte d'Azur"
]
router = APIRouter()
@router.post("/france")
async def get_france_states():
"""Return list of states in France"""
return {
"message": "States retrieved successfully",
"states": states,
"features": {
"total_count": len(states),
"last_updated": "2023"
}
}