Update code in endpoints/logout.post.py
This commit is contained in:
parent
66db03be4b
commit
ec38c0f868
@ -4,12 +4,12 @@ router = APIRouter()
|
||||
|
||||
@router.post("/logout")
|
||||
async def logout():
|
||||
"""Demo logout endpoint"""
|
||||
"""Logout endpoint"""
|
||||
if request.method != "POST":
|
||||
raise HTTPException(status_code=405, detail="Method Not Allowed")
|
||||
|
||||
return {
|
||||
"message": "Logout successful",
|
||||
"method": "POST",
|
||||
"_verb": "post",
|
||||
"message": "Logout successful (demo)"
|
||||
"_verb": "post"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user