From 3b6a19415f11a3cf9f2d4991056b11f20c7bf6c0 Mon Sep 17 00:00:00 2001 From: m0sviatoslav Date: Fri, 1 Feb 2019 17:06:34 +0200 Subject: [PATCH] move out admin outside of plugin --- src/Resources/config/app/ajax.yml | 2 +- src/Resources/config/app/routing.yml | 16 ++++++++-------- tests/Application/app/config/routing.yml | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Resources/config/app/ajax.yml b/src/Resources/config/app/ajax.yml index c9dd5ceb..954f7c38 100644 --- a/src/Resources/config/app/ajax.yml +++ b/src/Resources/config/app/ajax.yml @@ -50,7 +50,7 @@ sylius_admin_order_creation_ajax_product_variant_by_codes: arguments: $code sylius_admin_order_creation_ajax_provide_available_shipping_methods: - path: /admin/orders/available-shipping-methods/{customerId}/{channelCode}/{shipmentNumber} + path: /orders/available-shipping-methods/{customerId}/{channelCode}/{shipmentNumber} methods: [GET] defaults: _controller: Sylius\AdminOrderCreationPlugin\Controller\ProvideAvailableShippingMethodsAction diff --git a/src/Resources/config/app/routing.yml b/src/Resources/config/app/routing.yml index a235552b..ce663f46 100644 --- a/src/Resources/config/app/routing.yml +++ b/src/Resources/config/app/routing.yml @@ -1,11 +1,11 @@ sylius_admin_order_creation_select_order_customer: - path: /admin/orders/new/select-customer + path: /orders/new/select-customer methods: [GET] defaults: _controller: Sylius\AdminOrderCreationPlugin\Controller\SelectNewOrderCustomerAction sylius_admin_order_creation_customer_create: - path: /admin/orders/new/customer/{customerEmail}/{channelCode} + path: /orders/new/customer/{customerEmail}/{channelCode} methods: [GET] options: expose: true @@ -13,7 +13,7 @@ sylius_admin_order_creation_customer_create: _controller: Sylius\AdminOrderCreationPlugin\Controller\CustomerCreationAction sylius_admin_order_creation_order_create: - path: /admin/orders/new/{customerId}/{channelCode} + path: /orders/new/{customerId}/{channelCode} methods: [GET] options: expose: true @@ -33,7 +33,7 @@ sylius_admin_order_creation_order_create: customerId: \d+ sylius_admin_order_creation_order_preview: - path: /admin/orders/new/{customerId}/{channelCode}/preview + path: /orders/new/{customerId}/{channelCode}/preview methods: [POST] defaults: _controller: Sylius\AdminOrderCreationPlugin\Controller\OrderPreviewAction @@ -45,7 +45,7 @@ sylius_admin_order_creation_order_preview: arguments: [$customerId, $channelCode] sylius_admin_order_creation_order_create_from_preview: - path: /admin/orders/new/{customerId}/{channelCode}/create-from-preview + path: /orders/new/{customerId}/{channelCode}/create-from-preview methods: [POST] options: expose: true @@ -63,7 +63,7 @@ sylius_admin_order_creation_order_create_from_preview: arguments: [$customerId, $channelCode] sylius_admin_order_creation_order_create_back: - path: /admin/orders/edit/{customerId}/{channelCode} + path: /orders/edit/{customerId}/{channelCode} methods: [POST] options: expose: true @@ -73,7 +73,7 @@ sylius_admin_order_creation_order_create_back: customerId: \d+ sylius_admin_order_creation_reorder: - path: /admin/orders/{id}/reorder + path: /orders/{id}/reorder methods: [GET] options: expose: true @@ -91,7 +91,7 @@ sylius_admin_order_creation_reorder: arguments: ["expr:service('sylius.repository.order').find($id)"] sylius_admin_order_creation_ajax: - prefix: admin/ajax + prefix: ajax resource: "@SyliusAdminOrderCreationPlugin/Resources/config/app/ajax.yml" fos_js_routing: diff --git a/tests/Application/app/config/routing.yml b/tests/Application/app/config/routing.yml index 4eecdfcc..27648890 100644 --- a/tests/Application/app/config/routing.yml +++ b/tests/Application/app/config/routing.yml @@ -3,3 +3,4 @@ sylius: sylius_admin_order_creation: resource: "@SyliusAdminOrderCreationPlugin/Resources/config/app/routing.yml" + prefix: admin