Skip to content

Commit

Permalink
bug Sylius#13901 Use API Url prefix on sylius.api.paths_to_hide (Prom…
Browse files Browse the repository at this point in the history
…etee)

This PR was merged into the 1.12-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes (in case you are not using the default api url prefix)
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | none
| License         | MIT

If you are using another url prefix, different from `/api/v2` then those paths are not processed, this PR fix this issue.


Commits
-------

6f15f12 Use API Url prefix on sylius.api.paths_to_hide
  • Loading branch information
lchrusciel authored Apr 29, 2022
2 parents e66eed0 + 6f15f12 commit 50be917
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 50be917

Please sign in to comment.