From 67ed6552b831df66713bac9e672738796128d33f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Jun 2020 14:10:17 +0200 Subject: Reorganize client shared modules --- client/src/app/shared/bulk/bulk.service.ts | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 client/src/app/shared/bulk/bulk.service.ts (limited to 'client/src/app/shared/bulk') diff --git a/client/src/app/shared/bulk/bulk.service.ts b/client/src/app/shared/bulk/bulk.service.ts deleted file mode 100644 index b00db31ec..000000000 --- a/client/src/app/shared/bulk/bulk.service.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { HttpClient } from '@angular/common/http' -import { Injectable } from '@angular/core' -import { environment } from '../../../environments/environment' -import { RestExtractor, RestService } from '../rest' -import { BulkRemoveCommentsOfBody } from '../../../../../shared' -import { catchError } from 'rxjs/operators' - -@Injectable() -export class BulkService { - static BASE_BULK_URL = environment.apiUrl + '/api/v1/bulk' - - constructor ( - private authHttp: HttpClient, - private restExtractor: RestExtractor, - private restService: RestService - ) { } - - removeCommentsOf (body: BulkRemoveCommentsOfBody) { - const url = BulkService.BASE_BULK_URL + '/remove-comments-of' - - return this.authHttp.post(url, body) - .pipe(catchError(err => this.restExtractor.handleError(err))) - } -} -- cgit v1.2.3