Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

305 B
Raw Blame
import { BaseAPI, route } from "../base";
import type { BarcodeProduct } from "../types/data-contracts";

export class ProductAPI extends BaseAPI {
  searchFromBarcode(productEAN: string) {
    return this.http.get<BarcodeProduct[]>({ url: route(`/products/search-from-barcode`, { productEAN }) });
  }
}