Update code in endpoints/open.post.py
This commit is contained in:
parent
2dc7706c0f
commit
5c62b887ad
@ -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")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user