other means

This commit is contained in:
2023-11-09 05:50:30 +03:00
parent f015090143
commit fc06a86059
32 changed files with 353 additions and 143 deletions

12
src/api/generalApi.ts Normal file
View File

@@ -0,0 +1,12 @@
import apiClient from "./apiClient";
import {ShippingWarehouse} from "../types/shippingWarehouse";
const router = '/general';
const generalApi = {
getShippingWarehouses: async (): Promise<ShippingWarehouse[]> => {
let response = await apiClient.get(`${router}/getShippingWarehouses`);
return response.data;
},
}
export default generalApi;