// For use in development (with multimocks) so that we can see the requests in the console export class APILoggingInterceptor implements ng.IHttpInterceptor { request(config: ng.IRequestConfig) { if (config.url.includes('api') || config.url.includes('qs-proxy')) { console.log('API call', config.url, { ...(config.params ? { params: config.params } : {}), ...(config.data ? { data: config.data } : {}) }); } return config; } }