|
@@ -11,7 +11,7 @@ import roleApi from './modules/role'
|
|
|
import tenantApi from './modules/tenant'
|
|
import tenantApi from './modules/tenant'
|
|
|
import memberApi from './modules/member'
|
|
import memberApi from './modules/member'
|
|
|
import dept from './modules/dept'
|
|
import dept from './modules/dept'
|
|
|
-
|
|
|
|
|
|
|
+import company from './modules/insuranceCompany'
|
|
|
const axiosInstance:ApiInstance = axios.create({
|
|
const axiosInstance:ApiInstance = axios.create({
|
|
|
baseURL: (import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true') ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL,
|
|
baseURL: (import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true') ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL,
|
|
|
timeout: 1000 * 60,
|
|
timeout: 1000 * 60,
|
|
@@ -97,6 +97,7 @@ const api = {
|
|
|
roleApi: roleApi(axiosInstance),
|
|
roleApi: roleApi(axiosInstance),
|
|
|
tenantApi: tenantApi(axiosInstance),
|
|
tenantApi: tenantApi(axiosInstance),
|
|
|
member:memberApi(axiosInstance),
|
|
member:memberApi(axiosInstance),
|
|
|
- dept:dept(axiosInstance)
|
|
|
|
|
|
|
+ dept:dept(axiosInstance),
|
|
|
|
|
+ company:company(axiosInstance)
|
|
|
}
|
|
}
|
|
|
export default api
|
|
export default api
|