admin_contacts_index:
    path: /
    methods: GET
    defaults:
        _controller: 'PrestaShopBundle:Admin\Configure\ShopParameters\Contacts:index'
        _legacy_controller: AdminContacts
        _legacy_link: AdminContacts

admin_contacts_search:
    path: /
    methods: [POST]
    defaults:
        _controller: 'PrestaShopBundle:Admin\Configure\ShopParameters\Contacts:search'
        _legacy_controller: AdminContacts
        _legacy_link: AdminContacts:submitFiltercontact

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

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

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

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