feat: a few shipping products in box
This commit is contained in:
@@ -68,15 +68,15 @@ async def delete_shipping_product(
|
||||
|
||||
@shipping_router.post(
|
||||
'/box',
|
||||
response_model=UpdateBoxResponse,
|
||||
operation_id='update_box',
|
||||
response_model=CreateBoxResponse,
|
||||
operation_id='create_box',
|
||||
dependencies=[Depends(authorized_user)],
|
||||
)
|
||||
async def update_box(
|
||||
async def create_box(
|
||||
session: SessionDependency,
|
||||
request: UpdateBoxRequest,
|
||||
request: CreateBoxRequest,
|
||||
):
|
||||
return await ShippingService(session).update_box(request)
|
||||
return await ShippingService(session).create_box(request)
|
||||
|
||||
|
||||
@shipping_router.delete(
|
||||
|
||||
Reference in New Issue
Block a user