Update code in endpoints/france.post.py
This commit is contained in:
parent
b903f703e6
commit
287fc45a0d
@ -20,10 +20,10 @@ states_in_france = [
|
|||||||
|
|
||||||
@router.post("/france")
|
@router.post("/france")
|
||||||
async def get_states_in_france():
|
async def get_states_in_france():
|
||||||
"""endpoint that returns list of states in france"""
|
"""Returns list of states in France"""
|
||||||
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")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"_verb": "post",
|
"_verb": "post",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user