From 73622278b03e2e220f0baa248f3b8fcce234e014 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Tue, 18 Mar 2025 18:06:02 +0000 Subject: [PATCH] feat: Update endpoint loading --- endpoints/loading.post.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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