admin_contacts_index:
  path: /
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\ShopParameters\ContactsController::indexAction'
    _legacy_controller: AdminContacts
    _legacy_link: AdminContacts

admin_contacts_search:
  path: /
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\CommonController::searchGridAction
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.contacts
    redirectRoute: admin_contacts_index
    _legacy_controller: AdminContacts
    _legacy_link: AdminContacts:submitFiltercontact

admin_contacts_create:
  path: /new
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\ShopParameters\ContactsController::createAction'
    _legacy_controller: AdminContacts
    _legacy_link: AdminContacts:addcontact

admin_contacts_edit:
  path: /{contactId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\ShopParameters\ContactsController::editAction'
    _legacy_controller: AdminContacts
    _legacy_link: AdminContacts:updatecontact
  requirements:
    contactId: \d+

admin_contacts_delete:
  path: /{contactId}/delete
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\ShopParameters\ContactsController::deleteAction'
    _legacy_controller: AdminContacts
    _legacy_link: AdminContacts:deletecontact
  requirements:
    contactId: \d+

admin_contacts_delete_bulk:
  path: /delete/bulk
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\ShopParameters\ContactsController::deleteBulkAction'
    _legacy_controller: AdminContacts
    _legacy_link: AdminContacts:submitBulkdeletecontact
