2017-05-11 21:46:28 +02:00
|
|
|
import {Injectable} from "@angular/core";
|
|
|
|
import {AppConfig} from "../../app.config";
|
|
|
|
import {Http} from "@angular/http";
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class ArmyService {
|
|
|
|
|
|
|
|
constructor(private http: Http,
|
|
|
|
private config: AppConfig) {
|
|
|
|
}
|
|
|
|
|
|
|
|
getArmy() {
|
2017-08-01 23:52:10 +02:00
|
|
|
return this.http.get(this.config.apiOverviewPath)
|
2018-02-26 09:04:27 +01:00
|
|
|
.map(res => res.json());
|
2017-05-11 21:46:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|