Update code in endpoints/open.post.py
This commit is contained in:
parent
30a6533109
commit
2dc7706c0f
@ -16,8 +16,8 @@ towns_in_arizona = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
@router.post("/open")
|
@router.post("/open")
|
||||||
async def get_towns_in_arizona():
|
async def get_arizona_towns():
|
||||||
"""Endpoint that returns list of towns in Arizona"""
|
"""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