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