[AAE-12501] Replace alfresco api client with AdfHttpClient

This commit is contained in:
Amedeo Lepore
2023-03-16 16:53:25 +01:00
committed by eromano
parent 3b9d1ace1b
commit fcb7962a05
2 changed files with 5 additions and 2 deletions

View File

@@ -129,8 +129,11 @@ export class AdfHttpClient implements ee.Emitter,JsApiHttpClient {
}
);
if(emitters){
return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType);
}
return request.toPromise<T>();
}
post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {
return this.request<T>(url, {...options, httpMethod: 'POST'}, sc, emitters);

View File

@@ -1,4 +1,4 @@
/*!
s/*!
* @license
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*