ebanutsya
This commit is contained in:
16
src/api/ordersApi.ts
Normal file
16
src/api/ordersApi.ts
Normal 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;
|
||||
Reference in New Issue
Block a user