Every line of 'axios base url' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
26 delete(url, params) { 27 return this.http.delete(url, params); 28 }
75 delete(url, options) { 76 return this._axios.delete(url, options) 77 }
12 public get(url: string, params: AxiosRequestConfig): AxiosPromise { 13 return this.http.get(url, params); 14 }
47 delete (url: string, config = {}) { 48 return this.request(Object.assign(config, { method: 'delete', url })) 49 }
49 public url(path: string, params?: object, options: { 50 protocol: 'https' | 'wss' 51 } = { 52 protocol: 'https' 53 }): string { 54 let baseURL = `${options.protocol}://${this.instanceName}.${this.host}/${path}/` 55 if (path.startsWith('http') || path.startsWith('/')) { 56 baseURL = path 57 } 58 return buildURL(baseURL, { 59 user_key: this.token, 60 ...params 61 }) 62 }
33 protected getBaseEndPoint() { 34 return this.configService.server.baseUrl + 35 this.configService.server.occPrefix + 36 this.configService.site.baseSite + '/'; 37 }