node-domain-middleware
node-domain-middleware copied to clipboard
removing generate id function, what's the point of having it?
I think the middleware should keep it simple if you really want to change the domain id we should pass it as part of the arguments/options
Agree. This change breaks backwards compatibility, though.
You could also do this:
require('express-domain-middleware').id = function (req) {
return 'SOME_CUSTOM_ID'
};