WIP: Implemented game download functionality

This commit is contained in:
grimsi
2022-07-24 20:01:28 +02:00
parent eab1cf629c
commit e1a285a77d
10 changed files with 180 additions and 34 deletions
@@ -23,6 +23,10 @@ export class GamesService implements GamesApi {
return this.http.get<DetectedGameDto>(`${this.apiPath}/game/${slug}`);
}
downloadGame(slug: String): void {
window.open(`v1/${this.apiPath}/game/${slug}/download`, '_top');
}
getGameOverviews(): Observable<GameOverviewDto[]> {
return this.http.get<GameOverviewDto[]>(`${this.apiPath}/game-overviews`);
}