# GET /api/products/:product_id/assets(.:format)
# GET /api/products/:product_id/variants/:variant_id/assets(.:format)
# GET /api/assets/:id(.:format)
# GET /api/products/:product_id/variants/:variant_id/assets(.:format)
# GET /api/assets/:id(.:format)
# DELETE /api/products/:product_id/variants/:variant_id/assets(.:format) api/assets#destroy
# DELETE /api/assets/:id(.:format)
# POST /api/products/:product_id/variants/:variant_id/assets(.:format)
Ожидается params.require(:asset).permit(:src, :filename, :attachment)