Mise à jours du dashboard
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user