ebanutsya

This commit is contained in:
2023-10-27 06:03:46 +03:00
parent 4f25112b5e
commit 37d3fb5a78
34 changed files with 831 additions and 17841 deletions

16
src/api/ordersApi.ts Normal file
View File

@@ -0,0 +1,16 @@
import apiClient from "./apiClient";
import {Order} from "../types/order";
const router = '/orders';
const ordersApi = {
getOrders: async (lastId: number) => {
},
getOrdersBySupplierProduct: async (supplierProductId: number): Promise<Order[]> => {
let response = await apiClient.get(`${router}/getBySupplierProductId?supplierProductId=${supplierProductId}`);
return response.data;
}
}
export default ordersApi;