feat: crappy reordering

This commit is contained in:
2024-10-08 00:03:55 +03:00
parent aae7e96001
commit 9a2ec02ac4
3 changed files with 59 additions and 0 deletions

View File

@@ -112,6 +112,19 @@ async def create_category(
return await ServiceService(session).create_category(request)
@service_router.post(
'/categories/update',
response_model=ServiceUpdateCategoryResponse,
operation_id="update_service_category",
dependencies=[Depends(authorized_user)]
)
async def update_category(
session: Annotated[AsyncSession, Depends(get_session)],
request: ServiceUpdateCategoryRequest
):
return await ServiceService(session).update_category(request)
@service_router.post(
'/categories/reorder',
response_model=ServiceCategoryReorderResponse,