admin_attachments_index:
  path: /
  methods: GET
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::indexAction
    _legacy_controller: AdminAttachments
    _legacy_link: AdminAttachments

admin_attachments_filter:
  path: /
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\CommonController::searchGridAction
    _legacy_controller: AdminAttachments
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.attachment
    redirectRoute: admin_attachments_index
    _legacy_link: AdminAttachments:submitFilterattachment

admin_attachments_create:
  path: /new
  methods: [ GET, POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::createAction
    _legacy_controller: AdminAttachments
    _legacy_link: AdminAttachments:addattachment

admin_attachments_edit:
  path: /{attachmentId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::editAction
    _legacy_controller: AdminAttachments
    _legacy_link: AdminAttachments:updateattachment
    _legacy_parameters:
      id_attachment: attachmentId
  requirements:
    attachmentId: \d+

admin_attachments_view:
  path: /{attachmentId}/view
  methods: [ GET, POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::viewAction
    _legacy_controller: AdminAttachments
    _legacy_link: AdminAttachments:viewattachment
    _legacy_parameters:
      id_attachment: attachmentId
  requirements:
    attachmentId: \d+

admin_attachments_delete_bulk:
  path: /delete-bulk
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::deleteBulkAction
    _legacy_controller: AdminAttachments
    _legacy_link: AdminAttachments:submitBulkdeleteattachment

admin_attachments_delete:
  path: /{attachmentId}/delete
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::deleteAction
    _legacy_controller: AdminAttachments
    _legacy_link: AdminAttachments:deleteattachment
    _legacy_parameters:
      id_attachment: attachmentId
  requirements:
    attachmentId: \d+

admin_attachments_attachment_info:
  path: /{attachmentId}/info
  methods: [ GET ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::getAttachmentInfoAction
  requirements:
    attachmentId: \d+
  options:
    expose: true

admin_attachments_search:
  path: /search/{searchPhrase}
  methods: GET
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Sell\Catalog\AttachmentController::searchAction
    _legacy_controller: AdminAttachments
    _legacy_link: AdminAttachments:search
  options:
    expose: true
