From bcd88af53b1a920d728ec98b45daa9ac2e2c0917 Mon Sep 17 00:00:00 2001 From: transtrike Date: Fri, 12 Feb 2021 19:04:53 +0200 Subject: Moved from DevHive --- src/app/services/cloudinary.service.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/app/services/cloudinary.service.ts (limited to 'src/app/services/cloudinary.service.ts') diff --git a/src/app/services/cloudinary.service.ts b/src/app/services/cloudinary.service.ts new file mode 100644 index 0000000..999e498 --- /dev/null +++ b/src/app/services/cloudinary.service.ts @@ -0,0 +1,17 @@ +import {HttpClient} from '@angular/common/http'; +import {Injectable} from '@angular/core'; +import {Observable} from 'rxjs'; + +@Injectable({ + providedIn: 'root' +}) +export class CloudinaryService { + constructor(private _http: HttpClient) + { } + + getFileRequest(fileLink: string): Observable { + return this._http.get(fileLink, { + responseType: 'blob' + }); + } +} -- cgit v1.2.3