update backend apis
This commit is contained in:
@@ -163,6 +163,11 @@ export const api = {
|
||||
|
||||
getBrands: () => request('/api/brands'),
|
||||
|
||||
// Richer per-brand summaries for the home page card grid. `getBrands` above
|
||||
// still returns plain names and is what the sidebar and admin pages use.
|
||||
getBrandCards: ({ refresh = false } = {}) =>
|
||||
request(`/api/brands/overview${qs({ refresh: refresh || undefined })}`),
|
||||
|
||||
getBrandCategories: (brand) => request(`/api/brands/${encodeURIComponent(brand)}/categories`),
|
||||
|
||||
getBrandProducts: (brand, { category, limit = SHOW_ALL_PRODUCTS_LIMIT, offset = 0 } = {}) =>
|
||||
|
||||
Reference in New Issue
Block a user