Update code in endpoints/logout.post.py
This commit is contained in:
parent
36ebb66e9c
commit
48faac3a06
@ -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
|
Loading…
x
Reference in New Issue
Block a user