diff --git a/endpoints/logout.post.py b/endpoints/logout.post.py index 1b0f199..1becc2e 100644 --- a/endpoints/logout.post.py +++ b/endpoints/logout.post.py @@ -1,11 +1,14 @@ # Entity: User from fastapi import APIRouter, Depends, status -from core.auth import logout_user -from schemas.user import UserLogoutSchema +from models.user import User +from schemas.user import UserSchema +from helpers.user_helpers import logout_user router = APIRouter() -@router.post("/logout", status_code=200, response_model=UserLogoutSchema) -async def logout(user=Depends(logout_user)): - return {"message": "Logged out successfully"} \ No newline at end of file +@router.post("/logout", status_code=200, response_model=UserSchema) +async def logout( + current_user: User = Depends(logout_user) +): + pass \ No newline at end of file