aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_services
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-05-18 23:42:32 +0200
committerSonja Galovic <galovicsonja@gmail.com>2022-05-18 23:42:32 +0200
commit1c1efd8424242700e15af9b02582e1395916b7bc (patch)
tree73de802444542d0183a6c728f0805f9121a0ff84 /frontend/src/app/_services
parentef1e5b2a2cdd5680be8d9d1cea92c97c05da826d (diff)
parente719412e42581646a04cbd0ffa443be52d7740cf (diff)
Merge branch 'redesign' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into redesign
Diffstat (limited to 'frontend/src/app/_services')
-rw-r--r--frontend/src/app/_services/datasets.service.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/app/_services/datasets.service.ts b/frontend/src/app/_services/datasets.service.ts
index 8d07674d..3fb4e8f2 100644
--- a/frontend/src/app/_services/datasets.service.ts
+++ b/frontend/src/app/_services/datasets.service.ts
@@ -51,4 +51,8 @@ export class DatasetsService {
deleteDataset(dataset: Dataset) {
return this.http.delete(`${Configuration.settings.apiURL}/dataset/` + dataset._id, { headers: this.authService.authHeader(), responseType: "text" });
}
+
+ downloadFile(id:string):Observable<Blob>{
+ return this.http.get(`${Configuration.settings.apiURL}/file/Download?id=`+id, { headers: this.authService.authHeader(), responseType: 'blob' });
+ }
}