feat: client endpoints fixes for client tab in deal editor
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user