diff --git a/endpoints/loading.post.py b/endpoints/loading.post.py index e69de29..604413d 100644 --- a/endpoints/loading.post.py +++ b/endpoints/loading.post.py @@ -0,0 +1,22 @@ +from fastapi import APIRouter, Depends, HTTPException +from core.database import fake_users_db +from core.auth import get_current_user_dummy + +router = APIRouter() + +@router.post("/logout") +async def logout_demo( + token: str = Depends(get_current_user_dummy) +): + """Demo logout endpoint""" + if not token: + raise HTTPException(status_code=400, detail="No active session found") + + return { + "message": "Logout successful", + "session_status": "terminated", + "metadata": { + "logout_time": "demo_timestamp", + "session_duration": "demo_duration" + } + } \ No newline at end of file