# Entity: User from fastapi import APIRouter, Depends from starlette import status from core.auth import get_current_user from models.user import User from schemas.user import UserSchema from helpers.user_helpers import logout_user router = APIRouter() @router.post("/logout", status_code=status.HTTP_200_OK, response_model=UserSchema) async def logout( current_user: User = Depends(get_current_user) ): return logout_user(current_user)