feat: service deleting and rest categories placeholders

This commit is contained in:
2024-10-09 02:02:26 +03:00
parent 9a2ec02ac4
commit 7ee4ce36ce
4 changed files with 55 additions and 9 deletions

View File

@@ -26,9 +26,10 @@ service_router = APIRouter(
)
async def get_all(
session: Annotated[AsyncSession, Depends(get_session)]
session: Annotated[AsyncSession, Depends(get_session)],
with_placeholders: bool = False
):
return await ServiceService(session).get_all()
return await ServiceService(session).get_all(with_placeholders)
@service_router.post(