1
|
import { environment } from 'src/environments/environment';
|
2
|
import { CapturingVerification } from './../../models/capturing-verification.interface';
|
3
|
import { HttpClient } from '@angular/common/http';
|
4
|
import { Injectable } from '@angular/core';
|
5
|
import { Observable } from 'rxjs';
|
6
|
|
7
|
@Injectable({
|
8
|
providedIn: 'root'
|
9
|
})
|
10
|
export class CapturingVerificationsService {
|
11
|
|
12
|
baseUrl: string;
|
13
|
|
14
|
constructor(private http: HttpClient) {
|
15
|
this.baseUrl = `${environment.baseApiUrl}${environment.apiUrl.verificationRulesWs}/verifications/capturingVerifications`;
|
16
|
}
|
17
|
|
18
|
getCapturingVerifications(): Observable<CapturingVerification[]> {
|
19
|
return this.http.get<CapturingVerification[]>(this.baseUrl);
|
20
|
}
|
21
|
}
|