Update code in endpoints/logout.post.py

This commit is contained in:
Backend IM Bot 2025-03-24 09:24:27 +01:00
parent 66db03be4b
commit ec38c0f868

View File

@ -4,12 +4,12 @@ router = APIRouter()
@router.post("/logout") @router.post("/logout")
async def logout(): async def logout():
"""Demo logout endpoint""" """Logout endpoint"""
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 {
"message": "Logout successful",
"method": "POST", "method": "POST",
"_verb": "post", "_verb": "post"
"message": "Logout successful (demo)"
} }