You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
loopback-explorer should pick up hideRemoteMethod called after the explorer was initialized #686
// works, User.login is hidden
User.disableRemoteMethod('login', true);
app.use(explorer(app, { basePath: '/' }));
// does not work, User.login is shown in the UI
app.use(explorer(app, { basePath: '/' }));
User.disableRemoteMethod('login', true);
@bajtos Let me take this. (Anyway, I'm a beginner to this community. If I do something wrong, please advise.)
I'll send one PR to this repo to make Loopback emits 'remoteMethodDisabled' event and one PR to loopback-component-explorer to re-create the swagger object when this event fired.
I'll send one PR to this repo to make Loopback emits 'remoteMethodDisabled' event and one PR to loopback-component-explorer to re-create the swagger object when this event fired.
Awesome, thank you for the contribution. I can see the first pull request was already landed :)
@bajtos In loopback-component-explorer, should we change the loopback version in devDependency to be "^2.28.0" to make it more explicit about minimum requirement?
In loopback-component-explorer, should we change the loopback version in devDependency to be "^2.28.0" to make it more explicit about minimum requirement?
That's a good idea, could you please contribute that change yourself?
Activity
supasate commentedon Apr 27, 2016
@bajtos Let me take this. (Anyway, I'm a beginner to this community. If I do something wrong, please advise.)
I'll send one PR to this repo to make Loopback emits 'remoteMethodDisabled' event and one PR to loopback-component-explorer to re-create the swagger object when this event fired.
bajtos commentedon Apr 29, 2016
Awesome, thank you for the contribution. I can see the first pull request was already landed :)
bajtos commentedon May 2, 2016
Released in
loopback@2.28.0andloopback-component-explorer@2.5.0. Enjoy :)supasate commentedon May 3, 2016
@bajtos In loopback-component-explorer, should we change the loopback version in devDependency to be "^2.28.0" to make it more explicit about minimum requirement?
bajtos commentedon May 6, 2016
That's a good idea, could you please contribute that change yourself?
I am closing this issue as resolved.
supasate commentedon May 6, 2016
@bajtos Done. I made a PR at strongloop/loopback-component-explorer#159.