Update code in endpoints/open.post.py

This commit is contained in:
Backend IM Bot 2025-03-23 16:11:27 +01:00
parent 2dc7706c0f
commit 5c62b887ad

View File

@ -15,9 +15,8 @@ towns_in_arizona = [
"Surprise" "Surprise"
] ]
@router.post("/open") @router.post("/open", response_model=dict)
async def get_arizona_towns(): async def get_towns_in_arizona(request: dict):
"""endpoint that returns list of town in arizona"""
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")