From 5c62b887adaa69b1c0fdfbf5b394ffcdcb16a71b Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 23 Mar 2025 16:11:27 +0100 Subject: [PATCH] Update code in endpoints/open.post.py --- endpoints/open.post.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/endpoints/open.post.py b/endpoints/open.post.py index df138b7..99cb805 100644 --- a/endpoints/open.post.py +++ b/endpoints/open.post.py @@ -15,9 +15,8 @@ towns_in_arizona = [ "Surprise" ] -@router.post("/open") -async def get_arizona_towns(): - """endpoint that returns list of town in arizona""" +@router.post("/open", response_model=dict) +async def get_towns_in_arizona(request: dict): if request.method != "POST": raise HTTPException(status_code=405, detail="Method Not Allowed")