diff --git a/endpoints/france.post.py b/endpoints/france.post.py index 640d144..a256520 100644 --- a/endpoints/france.post.py +++ b/endpoints/france.post.py @@ -2,7 +2,7 @@ from fastapi import APIRouter, HTTPException router = APIRouter() -states = [ +states_in_france = [ "Auvergne-Rhône-Alpes", "Bourgogne-Franche-Comté", "Bretagne", @@ -19,13 +19,13 @@ states = [ ] @router.post("/france") -async def get_france_states(): +async def get_states_in_france(): """endpoint that returns list of states in france""" if request.method != "POST": raise HTTPException(status_code=405, detail="Method Not Allowed") - + return { "method": "POST", "_verb": "post", - "states": states + "states": states_in_france } \ No newline at end of file