Skip to content

Commit

Permalink
Merge pull request #1772 from Shopify/liz/udpate-webhook-path-docs
Browse files Browse the repository at this point in the history
Update the webhook docs path to match what we do in the template
  • Loading branch information
lizkenyon committed Jan 9, 2024
2 parents b47a8e2 + 25f4682 commit a4b8307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/shopify_app/webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ShopifyApp can manage your app's webhooks for you if you set which webhooks you
```ruby
ShopifyApp.configure do |config|
config.webhooks = [
{topic: 'carts/update', path: 'webhooks/carts_update'}
{topic: 'carts/update', path: 'api/webhooks/carts_update'}
]
end
```
Expand All @@ -35,7 +35,7 @@ If you are only interested in particular fields, you can optionally filter the d
```ruby
ShopifyApp.configure do |config|
config.webhooks = [
{topic: 'products/update', path: 'webhooks/products_update', fields: ['title', 'vendor']}
{topic: 'products/update', path: 'api/webhooks/products_update', fields: ['title', 'vendor']}
]
end
```
Expand All @@ -47,7 +47,7 @@ ShopifyApp.configure do |config|
config.webhooks = [
{
topic: 'orders/create',
path: 'webhooks/order_create',
path: 'api/webhooks/order_create',
metafield_namespaces: ['app-namespace'],
},
]
Expand Down

0 comments on commit a4b8307

Please sign in to comment.