|
|
|
@ -13,15 +13,11 @@ export class UtilitiesService {
|
|
|
|
|
uploadPhoto(url: string, photo: File): Observable<any> {
|
|
|
|
|
const formData = new FormData();
|
|
|
|
|
formData.append('photo', photo);
|
|
|
|
|
return this.http.post(url, formData, CustomOptions.getAuthOptions());
|
|
|
|
|
return this.http.post(url, formData, {withCredentials: true});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deletePhoto(url: string) {
|
|
|
|
|
return this.http.delete(url, CustomOptions.getAuthOptions());
|
|
|
|
|
deletePhoto(url: string): Observable<any> {
|
|
|
|
|
return this.http.delete(url, {withCredentials: true});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getTiny(url: string) {
|
|
|
|
|
return this.http.get(url, {responseType: 'text'});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|