diff --git a/src/lib/services/generic.service.ts b/src/lib/services/generic.service.ts index f5b8f24..c2af720 100644 --- a/src/lib/services/generic.service.ts +++ b/src/lib/services/generic.service.ts @@ -22,8 +22,6 @@ export abstract class GenericService { @Validate() getAll(modelPath = this._defaultModelPath): Observable { - console.log(`GET request from ${this.constructor.name}`); - return this._http.get(`/${encodeURI(modelPath)}`, { headers: HeadersConfiguration.getHeaders({ contentType: false }), observe: 'body' @@ -38,7 +36,6 @@ export abstract class GenericService { path += `/${encodeURIComponent(body)}`; } - console.log(`DELETE request from ${this.constructor.name} with body `, body); return this._http.delete(path, { body: body, params: this._queryParams(queryParams), @@ -53,8 +50,6 @@ export abstract class GenericService { modelPath = this._defaultModelPath, queryParams?: List ): Observable { - console.log(`POST request from ${this.constructor.name} with body `, body); - console.log('To path ', `/${encodeURI(modelPath)}`); return this._http.post(`/${encodeURI(modelPath)}`, body, { params: this._queryParams(queryParams), headers: HeadersConfiguration.getHeaders(), @@ -70,8 +65,6 @@ export abstract class GenericService { ): Observable { const entityPath = path.map(item => encodeURIComponent(item)).join('/'); - console.log(`GET request from ${this.constructor.name} with path ${encodeURI(modelPath)}/${entityPath}`); - return this._http.get(`/${encodeURI(modelPath)}/${entityPath}`, { headers: HeadersConfiguration.getHeaders({ contentType: false }), params: this._queryParams(queryParams),