admin_emails_index:
  path: /
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\EmailController::indexAction'
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails

admin_emails_search:
  path: /
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\CommonController::searchGridAction
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.email_logs
    redirectRoute: admin_emails_index
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails:search

admin_emails_save_options_get:
  path: /options
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\EmailController::indexAction'
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails:update

admin_emails_save_options:
  path: /options
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\EmailController::saveOptionsAction'
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails:update

admin_emails_send_test:
  path: /send-testing-email
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\EmailController::sendTestAction'
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails:testEmail
  condition: 'request.isXmlHttpRequest()'

admin_emails_delete_bulk:
  path: /delete-bulk
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\EmailController::deleteBulkAction'
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails:submitBulkdeletemail

admin_emails_delete_all:
  path: /delete-all
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\EmailController::deleteAllAction'
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails:deleteAll

admin_emails_delete:
  path: /delete/{mailId}
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\EmailController::deleteAction'
    _legacy_controller: AdminEmails
    _legacy_link: AdminEmails:deletemail
    _legacy_parameters:
      id_mail: mailId
  requirements:
    mailId: \d+
