Using middleware before using plugin
Opened this issue · 0 comments
narf commented
Hi,
It seems it's not possible to use the middleware before calling the plugin function since it's the call of the plugin that define the middleware.
In fact I'm loading my schemas dynamically at runtime, but I specify middlewares to my server at init, is there a way to keep this logic and use the mongoose-auth middleware?