feat(refresh): added refresh button on game detail view to refresh metadata

Resolves grimsi/gameyfin#45
This commit is contained in:
shawly
2022-10-19 23:35:24 +02:00
parent 6ee1117f3d
commit 130ec4565d
6 changed files with 45 additions and 3 deletions
@@ -92,6 +92,10 @@ export class GamesService implements GamesApi {
window.open(`v1${this.apiPath}/game/${slug}/download`, '_top');
}
refreshGame(slug: String): Observable<DetectedGameDto> {
return this.http.get<DetectedGameDto>(`${this.apiPath}/game/${slug}/refresh`);
}
getGameOverviews(): Observable<GameOverviewDto[]> {
return this.http.get<GameOverviewDto[]>(`${this.apiPath}/game-overviews`);
}