Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/thin-zebras-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@vue-storefront/next": minor
"@vue-storefront/nuxt": minor
---

[CHANGED] `defaultMethodsRequestConfig`, so the `getCategory`, and `getPage` methods will use `GET` request as a default.
2 changes: 2 additions & 0 deletions packages/nuxt/src/runtime/utils/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export function getDefaultMethodsRequestConfig() {
return {
unifiedCommerce: {
middlewareModule: {
getCategory: { method: "GET" },
getCategories: { method: "GET" },
getProductDetails: { method: "GET" },
getProductReviews: { method: "GET" },
Expand All @@ -12,6 +13,7 @@ export function getDefaultMethodsRequestConfig() {
},
unifiedCms: {
middlewareModule: {
getPage: { method: "GET" },
getEntries: { method: "GET" },
},
},
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/src/helpers/defaultConfigs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const defaultMethodsRequestConfig = {
unifiedCommerce: {
middlewareModule: {
getCategory: { method: "GET" },
getCategories: { method: "GET" },
getProductDetails: { method: "GET" },
getProductReviews: { method: "GET" },
Expand All @@ -11,6 +12,7 @@ export const defaultMethodsRequestConfig = {
},
unifiedCms: {
middlewareModule: {
getPage: { method: "GET" },
getEntries: { method: "GET" },
},
},
Expand Down