Update code in endpoints/logout.post.py

This commit is contained in:
Backend IM Bot 2025-03-28 11:32:13 +01:00
parent 36ebb66e9c
commit 48faac3a06

View File

@ -1,11 +1,14 @@
# Entity: User # Entity: User
from fastapi import APIRouter, Depends, status from fastapi import APIRouter, Depends, status
from core.auth import logout_user from models.user import User
from schemas.user import UserLogoutSchema from schemas.user import UserSchema
from helpers.user_helpers import logout_user
router = APIRouter() router = APIRouter()
@router.post("/logout", status_code=200, response_model=UserLogoutSchema) @router.post("/logout", status_code=200, response_model=UserSchema)
async def logout(user=Depends(logout_user)): async def logout(
return {"message": "Logged out successfully"} current_user: User = Depends(logout_user)
):
pass