express-namespace icon indicating copy to clipboard operation
express-namespace copied to clipboard

Added `exports.init` to allow `namespace` to be added to an express Server instance

Open simonexmachina opened this issue 11 years ago • 0 comments

I have an app where express Server instances are created in another module, which has its own instance of the express module, so they don't have the namespace method. This change allows me to call require('express-namespace').init(app) to add the method.

simonexmachina avatar Jan 16 '14 09:01 simonexmachina