admin_module_manage:
  path: /manage/{category}/{keyword}
  methods: [ GET ]
  defaults:
    category:
    keyword:
    _controller: PrestaShopBundle\Controller\Admin\Improve\ModuleController::manageAction
    _legacy_controller: AdminModulesManage
    _legacy_link:
      - AdminModulesManage
      - AdminModulesSf

admin_module_manage_action:
  path: /manage/action/{action}/{module_name}
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\ModuleController::moduleAction
  requirements:
    action: install|uninstall|enable|disable|enableMobile|disableMobile|reset|upgrade|delete

admin_module_configure_action:
  path: /manage/action/configure/{module_name}
  methods: [ GET, POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\ModuleController::configureModuleAction
    _legacy_controller: AdminModules
# WARNING: This controller is not fully migrated yet, it is an overlay that redirects to the legacy controller,
# but here is the proper configuration when it will be really migrated
#    _legacy_link: AdminModules:configure
#    _legacy_parameters:
#      configure: module_name

admin_module_manage_action_bulk:
  path: /manage/bulk/{action}
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\ModuleController::moduleAction
  requirements:
    action: install|uninstall|configure|enable|disable|reset|upgrade

admin_module_manage_update_all:
  path: /manage/update/all
  methods: [ POST ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\ModuleController::moduleAction

admin_module_import:
  path: /import
  methods: [ POST ]
  defaults:
    module_name:
    _controller: PrestaShopBundle\Controller\Admin\Improve\ModuleController::importModuleAction

admin_module_notification:
  path: /alerts
  methods: [ GET ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\Modules\AlertsController::indexAction
    _legacy_controller: AdminModulesNotifications
    _legacy_link: AdminModulesNotifications

admin_module_notification_count:
  path: /alerts/count
  methods: [ GET ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\Modules\AlertsController::notificationsCountAction
    _legacy_controller: AdminModulesNotifications
    _legacy_link: AdminModulesNotifications:count

admin_module_updates:
  path: /updates
  methods: [ GET ]
  defaults:
    _controller: PrestaShopBundle\Controller\Admin\Improve\Modules\UpdatesController::indexAction
    _legacy_controller: AdminModulesUpdates
    _legacy_link: AdminModulesUpdates
