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:
Greg Back 2021-02-04 13:27:52 -05:00 committed by GitHub
parent 0f45439a5f
commit 54b1fb6163
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
},