-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix issue with addWebRoute() api extension method #2990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on the requirement for this change? I'd just like to understand what was breaking.
Composer/packages/extensions/plugin-loader/src/composerPluginRegistration.ts
Outdated
Show resolved
Hide resolved
…egistration.ts Co-authored-by: Andy Brown <asbrown002@gmail.com>
It was throwing an exception because Express wasn't bound to the method anymore, so it was unable to find certain internal methods. Without this, using the addWebAPI method throws this error:
This turns out to be the source problem: |
* 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>
Description
This fixes a regression introduced a while ago but discovered today by a user that broke the addWebRoute method.
The method needed to be bound back to the Express object to function correctly.
closes #2990