14 lines
321 B
Python
14 lines
321 B
Python
# 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) |