# This file is a part of the Sylius package.
# (c) Sylius Sp. z o.o.

sylius_shop_homepage:
    path: /
    methods: [GET]
    controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction
    defaults:
        template: "@SyliusShop/homepage/index.html.twig"

sylius_shop_live_component:
    path: '/_components/{_live_component}/{_live_action}'
    defaults:
        _live_action: 'get'

sylius_shop_security:
    resource: "@SyliusShopBundle/Resources/config/routing/security.yml"

sylius_shop_user:
    resource: "@SyliusShopBundle/Resources/config/routing/shop_user.yml"

sylius_shop_product:
    resource: "@SyliusShopBundle/Resources/config/routing/product.yml"

sylius_shop_product_review:
    resource: "@SyliusShopBundle/Resources/config/routing/product_review.yml"
    prefix: /products/{slug}/reviews

sylius_shop_cart:
    resource: "@SyliusShopBundle/Resources/config/routing/cart.yml"
    prefix: /cart

sylius_shop_checkout:
    resource: "@SyliusShopBundle/Resources/config/routing/checkout.yml"
    prefix: /checkout

sylius_shop_contact_request:
    resource: "@SyliusShopBundle/Resources/config/routing/contact.yml"
    prefix: /contact

sylius_shop_order:
    resource: "@SyliusShopBundle/Resources/config/routing/order.yml"
    prefix: /order

sylius_shop_payment_request:
    resource: "@SyliusShopBundle/Resources/config/routing/payment_request.yaml"
    prefix: /payment-request

sylius_shop_account:
    resource: "@SyliusShopBundle/Resources/config/routing/account.yml"
    prefix: /account

sylius_shop_switch_currency:
    path: /switch-currency/{code}
    methods: [GET]
    defaults:
        _controller: sylius_shop.controller.currency_switch::switchAction

sylius_shop_switch_locale:
    path: /switch-locale/{code}
    methods: [GET]
    defaults:
        _controller: sylius_shop.controller.locale_switch::switchAction
