Skip to content

Commit

Permalink
fix: fix issue with addWebRoute() api extension method (#2990)
Browse files Browse the repository at this point in the history
* Fix regression that breaks the api.addWebRoute method

* Update Composer/packages/extensions/plugin-loader/src/composerPluginRegistration.ts

Co-authored-by: Andy Brown <asbrown002@gmail.com>

Co-authored-by: Andy Brown <asbrown002@gmail.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
3 people authored May 11, 2020
1 parent 946db05 commit 3ac5786
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class ComposerPluginRegistration {
const method = this.loader.webserver[type.toLowerCase()];

if (typeof method === 'function') {
method(url, ...handlers);
method.call(this.loader.webserver, url, ...handlers);
} else {
throw new Error(`Unhandled web route type ${type}`);
}
Expand Down

0 comments on commit 3ac5786

Please sign in to comment.