feat: client endpoints fixes for client tab in deal editor

This commit is contained in:
2025-10-05 12:05:03 +04:00
parent 986712d5b7
commit 7d6155ff6c
5 changed files with 25 additions and 6 deletions

View File

@ -1,4 +1,4 @@
from fastapi import APIRouter, Path
from fastapi import APIRouter, Path, Query
from backend.dependecies import SessionDependency
from modules.clients.schemas.client import *
@ -14,8 +14,9 @@ router = APIRouter(tags=["client"])
)
async def get_clients(
session: SessionDependency,
include_deleted: bool = Query(alias="includeDeleted", default=False),
):
return await ClientService(session).get_all()
return await ClientService(session).get_all(include_deleted)
@router.post(