Update code in endpoints/logout.post.py
This commit is contained in:
parent
32cecdd625
commit
2416b68a1c
@ -0,0 +1,20 @@
|
||||
from fastapi import APIRouter, HTTPException
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.post("/logout")
|
||||
async def logout_demo(
|
||||
token: str = "dummy_jwt_token_123"
|
||||
):
|
||||
"""Demo logout endpoint"""
|
||||
if not token:
|
||||
raise HTTPException(status_code=400, detail="Invalid token")
|
||||
|
||||
return {
|
||||
"message": "Logout successful",
|
||||
"token": None,
|
||||
"features": {
|
||||
"rate_limit": 0,
|
||||
"expires_in": 0
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user