# Entity: User from fastapi import APIRouter, Depends, status from core.security import logout_user from core.auth import get_current_user router = APIRouter() @router.post("/logout", status_code=status.HTTP_200_OK) async def logout(user=Depends(get_current_user)): logout_user(user) return {"message": "Logged out successfully"}