(url: string, params?: object, timeout?: number, headers?: object)
| 160 | return this.service.get(url, { params, ..._object }); |
| 161 | } |
| 162 | post<T>(url: string, params?: object, timeout?: number, headers?: object): Promise<ResultData<T>> { |
| 163 | let config = { |
| 164 | baseURL: import.meta.env.VITE_API_URL as string, |
| 165 | timeout: timeout ? timeout : (ResultEnum.TIMEOUT as number), |
| 166 | withCredentials: true, |
| 167 | headers: headers, |
| 168 | }; |
| 169 | if (headers) { |
| 170 | config.headers = headers; |
| 171 | } |
| 172 | return this.service.post(url, params, config); |
| 173 | } |
| 174 | postLocalNode<T>(url: string, params?: object, timeout?: number): Promise<ResultData<T>> { |
| 175 | return this.service.post(url, params, { |
| 176 | baseURL: import.meta.env.VITE_API_URL as string, |
no outgoing calls
no test coverage detected