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
+30
View File
@@ -0,0 +1,30 @@
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, AeronefAggregate, AeronefList, JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
@Injectable({ providedIn: 'root' })
export class AeronefsService {
constructor(
private apiService: ApiService
) { }
getAll(): Observable<Array<AeronefAggregate>> {
return this.apiService.get('/aeronefs')
.pipe(map(data => data.aeronefs));
/*
//return this.apiService.get('/aeronefs');
return this.apiService.get('/aeronefs')
.pipe(map(data => {
return {
aeronefs: <Array<Aeronef>>data.aeronefs,
aeronefsCount: <number>data.aeronefsCount
};
}));
*/
}
}