Update code in endpoints/france.post.py
This commit is contained in:
parent
983f42a891
commit
6f43ba16ed
@ -4,7 +4,7 @@ router = APIRouter()
|
||||
|
||||
states_in_france = [
|
||||
"Auvergne-Rhône-Alpes",
|
||||
"Bourgogne-Franche-Comté",
|
||||
"Bourgogne-Franche-Comté",
|
||||
"Bretagne",
|
||||
"Centre-Val de Loire",
|
||||
"Corse",
|
||||
@ -12,7 +12,7 @@ states_in_france = [
|
||||
"Hauts-de-France",
|
||||
"Île-de-France",
|
||||
"Normandie",
|
||||
"Nouvelle-Aquitaine",
|
||||
"Nouvelle-Aquitaine",
|
||||
"Occitanie",
|
||||
"Pays de la Loire",
|
||||
"Provence-Alpes-Côte d'Azur"
|
||||
@ -20,7 +20,7 @@ states_in_france = [
|
||||
|
||||
@router.post("/france")
|
||||
async def get_states_in_france():
|
||||
"""endpoint that returns list of states in france"""
|
||||
"""Endpoint that returns list of states in france"""
|
||||
if request.method != "POST":
|
||||
raise HTTPException(status_code=405, detail="Method Not Allowed")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user