From 7bd42bda846945726ff12eb67e8be60e572d5949 Mon Sep 17 00:00:00 2001 From: benjamin Date: Sun, 4 Aug 2019 23:33:03 +0200 Subject: [PATCH] paging --- WEB/src/app/data/download.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WEB/src/app/data/download.service.ts b/WEB/src/app/data/download.service.ts index 9b2c185..cbb76cd 100644 --- a/WEB/src/app/data/download.service.ts +++ b/WEB/src/app/data/download.service.ts @@ -1,6 +1,6 @@ -import {base} from './urls'; import {HttpClient} from '@angular/common/http'; import {Injectable} from '@angular/core'; +import {environment} from '../../environments/environment'; @Injectable({ providedIn: 'root' @@ -11,7 +11,7 @@ export class DownloadService { public get(songId: number, fileId: number, filename: string) { return this.httpClient - .get(base + '/api/songs/' + songId + '/files/' + fileId, { + .get(`${environment.api}/api/songs/${songId}/files/${fileId}`, { responseType: 'blob' as 'json', observe: 'response' })