Update code in endpoints/logout.post.py
This commit is contained in:
parent
f80ceda115
commit
d43bfc1530
@ -0,0 +1,17 @@
|
|||||||
|
from fastapi import APIRouter, HTTPException
|
||||||
|
|
||||||
|
users = [] # In-memory storage
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.post("/logout")
|
||||||
|
async def logout_demo():
|
||||||
|
"""Demo logout endpoint"""
|
||||||
|
return {
|
||||||
|
"message": "Logout successful",
|
||||||
|
"session": "terminated",
|
||||||
|
"features": {
|
||||||
|
"rate_limit": 0,
|
||||||
|
"expires_in": 0
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user