admin_country_states:
  path: /country-states
  methods: [ GET ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::getStatesAction
    _legacy_controller: AdminStates

admin_states_index:
  path: /
  methods: [ GET ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::indexAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates
    _legacy_feature_flag: state

admin_states_filter:
  path: /
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle:Admin\Common:searchGrid
    _legacy_controller: AdminStates
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.state
    redirectRoute: admin_states_index
    _legacy_link: AdminStates:submitFilterstate
    _legacy_feature_flag: state

admin_states_create:
  path: /new
  methods: [ GET, POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::createAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates:addstate
    _legacy_feature_flag: state

admin_states_edit:
  path: /{stateId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::editAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates:updatestate
    _legacy_feature_flag: state
    _legacy_parameters:
      id_state: stateId
  requirements:
    stateId: \d+

admin_states_delete_bulk:
  path: /delete-bulk
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::deleteBulkAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates:submitBulkdeletestate
    _legacy_feature_flag: state

admin_states_delete:
  path: /{stateId}/delete
  methods: [ DELETE ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::deleteAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates:deletestate
    _legacy_feature_flag: state
    _legacy_parameters:
      id_state: stateId
  requirements:
    stateId: \d+

admin_states_bulk_enable_status:
  path: /bulk-status-enable
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::bulkEnableAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates:submitBulkenableSelectionstate
    _legacy_feature_flag: state

admin_states_bulk_disable_status:
  path: /bulk-status-disable
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::bulkDisableAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates:submitBulkdisableSelectionstate
    _legacy_feature_flag: state

admin_states_toggle_status:
  path: /{stateId}/toggle-status
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\International\StateController::toggleStatusAction
    _legacy_controller: AdminStates
    _legacy_link: AdminStates:statusstate
    _legacy_feature_flag: state
    _legacy_parameters:
      id_state: stateId
