Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Resources/config/app/ajax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions src/Resources/config/app/routing.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
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
defaults:
_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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions tests/Application/app/config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ sylius:

sylius_admin_order_creation:
resource: "@SyliusAdminOrderCreationPlugin/Resources/config/app/routing.yml"
prefix: admin