diff --git a/barker/barker/routers/modifier_category.py b/barker/barker/routers/modifier_category.py index dca07454..76d0a1b4 100644 --- a/barker/barker/routers/modifier_category.py +++ b/barker/barker/routers/modifier_category.py @@ -190,7 +190,7 @@ def show_list( return modifier_categories -@router.get("/for-product/{sku_id}") +@router.get("/for-sku/{sku_id}") def for_product( sku_id: uuid.UUID, date_: date = Depends(effective_date), diff --git a/bookie/src/app/modifier-categories/modifier-category.service.ts b/bookie/src/app/modifier-categories/modifier-category.service.ts index c9d64ef2..199dab0a 100644 --- a/bookie/src/app/modifier-categories/modifier-category.service.ts +++ b/bookie/src/app/modifier-categories/modifier-category.service.ts @@ -32,9 +32,9 @@ export class ModifierCategoryService { .pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable; } - listForSku(id: string): Observable { + listForSku(sku_id: string): Observable { return this.http - .get(`${url}/for-product/${id}`) + .get(`${url}/for-sku/${sku_id}`) .pipe(catchError(this.log.handleError(serviceName, 'listForSku'))) as Observable; }