From f8cae240f62693eb4c04f2804383dec4f289d904 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 23 Mar 2025 10:41:36 +0100 Subject: [PATCH] Update code in endpoints/france.post.py --- endpoints/france.post.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/endpoints/france.post.py b/endpoints/france.post.py index 784d359..640d144 100644 --- a/endpoints/france.post.py +++ b/endpoints/france.post.py @@ -2,10 +2,20 @@ from fastapi import APIRouter, HTTPException router = APIRouter() -states_in_france = [ - "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" +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.post("/france") @@ -17,5 +27,5 @@ async def get_france_states(): return { "method": "POST", "_verb": "post", - "states": states_in_france + "states": states } \ No newline at end of file