mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-12501] Replace alfresco api client with AdfHttpClient
This commit is contained in:
@@ -129,8 +129,11 @@ export class AdfHttpClient implements ee.Emitter,JsApiHttpClient {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(emitters){
|
||||||
return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType);
|
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> {
|
post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {
|
||||||
return this.request<T>(url, {...options, httpMethod: 'POST'}, sc, emitters);
|
return this.request<T>(url, {...options, httpMethod: 'POST'}, sc, emitters);
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/*!
|
s/*!
|
||||||
* @license
|
* @license
|
||||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user