Update code in endpoints/logoutst.post.py

This commit is contained in:
Backend IM Bot 2025-03-28 11:49:24 +01:00
parent 4d8d40bb43
commit 4f07a1a717

View 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)