Ajout des sources
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpParams } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
import { ApiService } from './api.service';
|
||||
import { Canopy, CanopyAggregate ,JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class CanopiesService {
|
||||
constructor(
|
||||
private apiService: ApiService
|
||||
) { }
|
||||
|
||||
getAll(): Observable<Array<CanopyAggregate>> {
|
||||
return this.apiService.get('/canopies')
|
||||
.pipe(map(data => data.canopies));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user