mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
9 lines
305 B
TypeScript
9 lines
305 B
TypeScript
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 }) });
|
|
}
|
|
}
|