diff --git a/endpoints/logout.post.py b/endpoints/logout.post.py index da6a26a..91b2c5b 100644 --- a/endpoints/logout.post.py +++ b/endpoints/logout.post.py @@ -11,8 +11,7 @@ router = APIRouter() @router.post("/logout", status_code=200) async def logout( - db: Session = Depends(get_db), - current_user: User = Depends(get_current_user) + db: Session = Depends(get_db) ): - logout_user(db, current_user) + logout_user(db) return {"message": "Logged out successfully"} \ No newline at end of file