Update code in endpoints/open.post.py
This commit is contained in:
parent
13b547dd1d
commit
d8dae32ee6
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user