Update code in endpoints/api/v1/endpoint.post.py
This commit is contained in:
parent
6ccf15b549
commit
a82398eec1
19
endpoints/api/v1/endpoint.post.py
Normal file
19
endpoints/api/v1/endpoint.post.py
Normal file
@ -0,0 +1,19 @@
|
||||
from fastapi import APIRouter, Depends, HTTPException
|
||||
from core.database import fake_users_db
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.post("/logout")
|
||||
async def logout_demo():
|
||||
"""Demo logout endpoint"""
|
||||
return {
|
||||
"message": "Logout successful",
|
||||
"metadata": {
|
||||
"session_terminated": True,
|
||||
"timestamp": "demo_timestamp"
|
||||
},
|
||||
"next_steps": [
|
||||
"Clear local storage",
|
||||
"Redirect to login page"
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user