Update code in endpoints/logout.post.py
This commit is contained in:
parent
5dd976e574
commit
9e4197396f
@ -11,8 +11,7 @@ router = APIRouter()
|
|||||||
|
|
||||||
@router.post("/logout", status_code=200)
|
@router.post("/logout", status_code=200)
|
||||||
async def logout(
|
async def logout(
|
||||||
db: Session = Depends(get_db),
|
db: Session = Depends(get_db)
|
||||||
current_user: User = Depends(get_current_user)
|
|
||||||
):
|
):
|
||||||
logout_user(db, current_user)
|
logout_user(db)
|
||||||
return {"message": "Logged out successfully"}
|
return {"message": "Logged out successfully"}
|
Loading…
x
Reference in New Issue
Block a user