Skip to content

Commit

Permalink
bug #531 Fix cors configuration and paths to config file (alexander-s…
Browse files Browse the repository at this point in the history
…chranz)

This PR was merged into the 1.0-dev branch.

Discussion
----------

`sylius_shop_api_set_default_address` is a PATCH request

Commits
-------

472d213 Fix cors configuration and paths to config file
  • Loading branch information
lchrusciel authored Sep 9, 2019
2 parents 0794fa1 + 472d213 commit 23f4a77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ The latest documentation is available [here](https://app.swaggerhub.com/apis/Syl
2. Add `- { path: '^/shop-api', priorities: ['json'], fallback_format: json, prefer_extension: true }` to `fos_rest.format_listener.rules`
section in `config/packages/fos_rest.yaml` file and import config from Plugin.
```yml
# app/config/config.yml
# config/packages/_sylius_shop_api.yaml

imports: # <-- Add this section if it does not already exist and add the lines below
# ...
- { resource: "@SyliusShopApiPlugin/Resources/config/app/config.yml" }
- { resource: "@SyliusShopApiPlugin/Resources/config/app/sylius_mailer.yml" }

# ...
# config/packages/fos_rest.yaml

fos_rest:
# ...
Expand Down Expand Up @@ -139,7 +139,7 @@ The latest documentation is available [here](https://app.swaggerhub.com/apis/Syl
'^/shop-api/':
allow_origin: ['*']
allow_headers: ['Content-Type', 'authorization']
allow_methods: ['POST', 'PUT', 'GET', 'DELETE', 'OPTIONS']
allow_methods: ['POST', 'PUT', 'GET', 'DELETE', 'PATCH', 'OPTIONS']
max_age: 3600
```

Expand Down

0 comments on commit 23f4a77

Please sign in to comment.