# Entity: User from fastapi import APIRouter, Depends, status from fastapi.security import OAuth2PasswordBearer from helpers.auth_helpers import logout_user router = APIRouter() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/login") @router.post("/logoutfst", status_code=status.HTTP_200_OK) async def logout(token: str = Depends(oauth2_scheme)): return logout_user(token)