Ajout des sources

This commit is contained in:
Julien Gautier
2023-09-12 21:46:56 +02:00
parent fa2288b8ed
commit 747948a422
235 changed files with 45064 additions and 0 deletions
+20
View File
@@ -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));
}
}