Mise à jours du dashboard

This commit is contained in:
Julien Gautier
2023-09-14 18:28:02 +02:00
parent 0e6b3ef1c7
commit 92b204c769
41 changed files with 981 additions and 852 deletions
+6 -2
View File
@@ -1,10 +1,9 @@
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 { Aeronef, AeronefByImat, AeronefList, JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
import { Aeronef, AeronefByImat, AeronefByYear } from 'src/app/core/models';
@Injectable({ providedIn: 'root' })
export class AeronefsService {
@@ -27,4 +26,9 @@ export class AeronefsService {
*/
}
getAllByDate(): Observable<Array<AeronefByYear>> {
return this.apiService.get('/aeronefs/allByDate')
.pipe(map(data => data.aeronefs));
}
}