Update code in endpoints/LOGOUT.post.py
This commit is contained in:
parent
838e6bc266
commit
8d3fcdce0c
@ -1,7 +1,5 @@
|
|||||||
from fastapi import APIRouter, HTTPException
|
from fastapi import APIRouter, HTTPException
|
||||||
|
|
||||||
users = [] # In-memory storage
|
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
@router.post("/LOGOUT")
|
@router.post("/LOGOUT")
|
||||||
@ -9,9 +7,10 @@ async def logout_demo():
|
|||||||
"""Demo logout endpoint"""
|
"""Demo logout endpoint"""
|
||||||
return {
|
return {
|
||||||
"message": "Logout successful",
|
"message": "Logout successful",
|
||||||
"token": None,
|
"method": "POST",
|
||||||
|
"_verb": "post",
|
||||||
"features": {
|
"features": {
|
||||||
"rate_limit": 0,
|
"rate_limit": 100,
|
||||||
"expires_in": 0
|
"expires_in": 3600
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user