-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing the old routes and fixing the tests
- Loading branch information
Showing
22 changed files
with
143 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,56 @@ | ||
sylius_shop_api_product_show_details_by_slug_deprecated: | ||
path: /products-by-slug/{slug} | ||
methods: [GET] | ||
defaults: | ||
_controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController:urlRedirectAction' | ||
path: /shop-api/{channelCode}/products/by-slug/{slug} | ||
permanent: true | ||
|
||
sylius_shop_api_add_product_review_by_slug_deprecated: | ||
path: /product-reviews-by-slug/{slug} | ||
methods: [POST] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.add_review_by_slug_action | ||
|
||
sylius_shop_api_product_show_catalog_by_slug_deprecated: | ||
path: /taxon-products-by-slug/{taxonSlug} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_catalog_by_taxon_slug_action | ||
|
||
sylius_shop_api_product_show_reviews_by_slug_deprecated: | ||
path: /product-reviews-by-slug/{slug} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_reviews_by_slug_action | ||
#sylius_shop_api_product_show_details_by_slug_deprecated: | ||
# path: /products-by-slug/{slug} | ||
# methods: [GET] | ||
# defaults: | ||
# _controller: sylius.shop_api_plugin.controller.product.show_product_details_by_slug_action | ||
# | ||
#sylius_shop_api_add_product_review_by_slug_deprecated: | ||
# path: /product-reviews-by-slug/{slug} | ||
# methods: [POST] | ||
# defaults: | ||
# _controller: sylius.shop_api_plugin.controller.product.add_review_by_slug_action | ||
# | ||
#sylius_shop_api_product_show_catalog_by_slug_deprecated: | ||
# path: /taxon-products-by-slug/{taxonSlug} | ||
# methods: [GET] | ||
# defaults: | ||
# _controller: sylius.shop_api_plugin.controller.product.show_product_catalog_by_taxon_slug_action | ||
# | ||
#sylius_shop_api_product_show_reviews_by_slug_deprecated: | ||
# path: /product-reviews-by-slug/{slug} | ||
# methods: [GET] | ||
# defaults: | ||
# _controller: sylius.shop_api_plugin.controller.product.show_product_reviews_by_slug_action | ||
|
||
# New routes | ||
sylius_shop_api_product_show_details_by_slug: | ||
path: /products/by-slug/{slug} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_details_by_slug_action | ||
requirements: | ||
slug: .+ | ||
|
||
sylius_shop_api_product_show_catalog_by_slug: | ||
path: /taxon-products/by-slug/{slug} | ||
path: /taxon-products/by-slug/{taxonSlug} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_catalog_by_taxon_slug_action | ||
requirements: | ||
taxonSlug: .+ | ||
|
||
sylius_shop_api_product_show_reviews_by_slug: | ||
path: /product/by-slug/{slug}/reviews | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_reviews_by_slug_action | ||
requirements: | ||
slug: .+ | ||
|
||
sylius_shop_api_add_product_review_by_slug: | ||
path: /product/by-slug/{slug}/reviews | ||
methods: [POST] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.add_review_by_slug_action | ||
requirements: | ||
slug: .+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.