(url: string, params?: object, timeout?: number)
| 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, |
| 177 | timeout: timeout ? timeout : (ResultEnum.TIMEOUT as number), |
| 178 | withCredentials: true, |
| 179 | headers: { |
| 180 | CurrentNode: 'local', |
| 181 | }, |
| 182 | }); |
| 183 | } |
| 184 | put<T>(url: string, params?: object, _object = {}): Promise<ResultData<T>> { |
| 185 | return this.service.put(url, params, _object); |
| 186 | } |
no test coverage detected