opt-cc/static/src/app/services/logs/player.service.ts

19 lines
453 B
TypeScript
Raw Normal View History

import {Injectable} from "@angular/core";
import {AppConfig} from "../../app.config";
import {HttpClient} from "../http-client";
@Injectable()
export class PlayerService {
constructor(private http: HttpClient,
private config: AppConfig) {
}
getCampaignPlayer(campaignId: string, playerName: string) {
return this.http.get(this.config.apiPlayersPath + '/' + campaignId + '/' + playerName)
.map(res => res.json())
}
}