Skip to content

Commit

Permalink
Use newfeed.service config for all newsfeeds (elastic#90252)
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 8, 2021
1 parent 392ba21 commit 83c66d7
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 83c66d7

Please sign in to comment.