Skip to content

Commit

Permalink
[7.x] Use newfeed.service config for all newsfeeds (#90252) (#90681)
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Fernández Haro <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Alejandro Fernández Haro <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
3 people authored Feb 9, 2021
1 parent 9fd5d9d commit 83ea30d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/newsfeed/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 83ea30d

Please sign in to comment.