Skip to content

Commit 51ab8c6

Browse files
authored
Merge pull request #9 from Sylius/SY-270/cleanup-routes
[Maintenance] Cleanup routes
2 parents fbdc6ce + 4f37d0e commit 51ab8c6

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

config/routes/shop/ajax/cart.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,3 @@ sylius_shop_ajax_cart_add_item:
1919
route: sylius_shop_cart_summary
2020
parameters: {}
2121
flash: sylius.cart.add_item
22-
23-
#sylius_shop_ajax_cart_item_remove:
24-
# path: /{id}/remove
25-
# methods: [DELETE]
26-
# defaults:
27-
# _controller: sylius.controller.order_item::removeAction
28-
# _format: json
29-
# _sylius:
30-
# flash: sylius.cart.remove_item

config/routes/shop/partial/taxon.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ sylius_shop_partial_taxon_show_by_slug:
1616
requirements:
1717
slug: .+
1818

19-
#sylius_shop_partial_taxon_index_by_code:
20-
# path: /by-code/{code}
21-
# methods: [GET]
22-
# defaults:
23-
# _controller: sylius.controller.taxon::indexAction
24-
# _sylius:
25-
# template: $template
26-
# repository:
27-
# method: findChildren
28-
# arguments:
29-
# - $code
30-
# - "expr:service('sylius.context.locale').getLocaleCode()"
19+
sylius_shop_partial_taxon_index_by_code:
20+
path: /by-code/{code}
21+
methods: [GET]
22+
defaults:
23+
_controller: sylius.controller.taxon::indexAction
24+
_sylius:
25+
template: $template
26+
repository:
27+
method: findChildren
28+
arguments:
29+
- $code
30+
- "expr:service('sylius.context.locale').getLocaleCode()"
3131

3232
sylius_shop_partial_channel_menu_taxon_index:
3333
path: /by-channel-menu-taxon/

0 commit comments

Comments
 (0)