This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import api from '~/api/instance'
|
||||
|
||||
export const getProductsDetail = async (productId: number) =>
|
||||
await api.wc.v1ProductsDetail(productId)
|
||||
await api.wc.v3ProductsDetail(productId)
|
||||
|
||||
4
api/endpoints/getProductsVariationsList.ts
Normal file
4
api/endpoints/getProductsVariationsList.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import api from '~/api/instance'
|
||||
|
||||
export const getProductsVariationsList = async (productId: number) =>
|
||||
await api.wc.v3ProductsVariationsList(productId)
|
||||
@@ -1 +1,2 @@
|
||||
export * from './getProductsDetail'
|
||||
export * from './getProductsVariationsList'
|
||||
|
||||
Reference in New Issue
Block a user