Update code in endpoints/france.post.py

This commit is contained in:
Backend IM Bot 2025-03-23 13:20:55 +01:00
parent 983f42a891
commit 6f43ba16ed

View File

@ -20,7 +20,7 @@ states_in_france = [
@router.post("/france") @router.post("/france")
async def get_states_in_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": if request.method != "POST":
raise HTTPException(status_code=405, detail="Method Not Allowed") raise HTTPException(status_code=405, detail="Method Not Allowed")