|
|
|
@ -38,4 +38,13 @@ export class ImageService {
|
|
|
|
|
|
|
|
|
|
return this.http.post(`${this.apiUrl}/image/pin/null/add`, formData, { headers });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getImageMetadata(imageId: string): Observable<any> {
|
|
|
|
|
const token = this.localStorageService.getToken();
|
|
|
|
|
const headers = new HttpHeaders({
|
|
|
|
|
'Authorization': `Bearer ${token}`
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return this.http.get(`${this.apiUrl}/image/${imageId}/metadata`, { headers });
|
|
|
|
|
}
|
|
|
|
|
}
|