Update code in endpoints/logoutst.post.py
This commit is contained in:
parent
4d8d40bb43
commit
4f07a1a717
14
endpoints/logoutst.post.py
Normal file
14
endpoints/logoutst.post.py
Normal file
@ -0,0 +1,14 @@
|
||||
# Entity: User
|
||||
|
||||
from fastapi import APIRouter, Depends, status
|
||||
from sqlalchemy.orm import Session
|
||||
from core.database import get_db
|
||||
from helpers.user_helpers import logout_user
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.post("/logout", status_code=200)
|
||||
async def logout(
|
||||
db: Session = Depends(get_db)
|
||||
):
|
||||
return logout_user(db)
|
Loading…
x
Reference in New Issue
Block a user