From 6f15f1209f26fdb2bd3990fe2812a1abfdc8aafe Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Wed, 27 Apr 2022 10:42:30 +0200 Subject: [PATCH] Use API Url prefix on sylius.api.paths_to_hide --- .../Bundle/ApiBundle/Resources/config/app/config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml b/src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml index 587a3739e2c..94c1ef54f6c 100644 --- a/src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml +++ b/src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml @@ -5,9 +5,9 @@ parameters: env(SYLIUS_API_AUTHORIZATION_HEADER): Authorization sylius.api.authorization_header: "%env(resolve:SYLIUS_API_AUTHORIZATION_HEADER)%" sylius.api.paths_to_hide: - - "/api/v2/admin/catalog-promotion-actions/{id}" - - "/api/v2/admin/catalog-promotion-scopes/{id}" - - "/api/v2/admin/channel-pricings/{id}" + - "%sylius.security.new_api_route%/admin/catalog-promotion-actions/{id}" + - "%sylius.security.new_api_route%/admin/catalog-promotion-scopes/{id}" + - "%sylius.security.new_api_route%/admin/channel-pricings/{id}" sylius.security.new_api_route: "/api/v2" sylius.security.new_api_regex: "^%sylius.security.new_api_route%" sylius.security.new_api_admin_route: "%sylius.security.new_api_route%/admin"