update backend apis

This commit is contained in:
sriram
2026-08-13 16:03:51 +05:30
parent 282a494aab
commit 586eeecbf5
4 changed files with 214 additions and 29 deletions

View File

@@ -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 } = {}) =>