From d8dae32ee674ea718025f2b81ca68507930c6bd0 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 23 Mar 2025 16:03:58 +0100 Subject: [PATCH] Update code in endpoints/open.post.py --- endpoints/open.post.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/endpoints/open.post.py b/endpoints/open.post.py index 0f35041..225454c 100644 --- a/endpoints/open.post.py +++ b/endpoints/open.post.py @@ -15,11 +15,11 @@ towns_in_arizona = [ "Surprise" ] -@router.post("/open", summary="Returns list of towns in Arizona") +@router.post("/open", status_code=200) async def get_towns_in_arizona(): - """Returns list of towns in Arizona""" + """Endpoint that returns list of towns in Arizona""" if request.method != "POST": - raise HTTPException(status_code=405, detail="Method not allowed") + raise HTTPException(status_code=405, detail="Method Not Allowed") return { "method": "POST",