We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c712f6 commit 6a7f8bfCopy full SHA for 6a7f8bf
src/lib/api/product.ts
@@ -11,7 +11,7 @@ export class ProductsApi {
11
}
12
13
async getProductAttributes(barcode: string): Promise<ProductAttribute[]> {
14
- const apiVersion = import.meta.env.VITE_API_VERSION || DEFAULT_API_VERSION;
+ const apiVersion = import.meta.env.VITE_API_VERSION || '3';
15
const url = `${API_HOST}/api/v${apiVersion}/product/${barcode}?fields=product_name,code,attribute_groups_en`;
16
17
const res = await this.fetch(url);
0 commit comments