Use newfeed.service config for all newsfeeds (#90252)
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
0f45439a5f
commit
54b1fb6163
|
@ -51,7 +51,10 @@ export class NewsfeedPublicPlugin
|
|||
return {
|
||||
createNewsFeed$: (endpoint: NewsfeedApiEndpoint) => {
|
||||
const config = Object.assign({}, this.config, {
|
||||
service: { pathTemplate: `/${endpoint}/v{VERSION}.json` },
|
||||
service: {
|
||||
...this.config.service,
|
||||
pathTemplate: `/${endpoint}/v{VERSION}.json`,
|
||||
},
|
||||
});
|
||||
return this.fetchNewsfeed(core, config);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue