Calling a middleware from within a middleware in NodeJS/ExpressJS
问题 I have created some standard middleware with some logic, and depending on the logic I need to call some 3rd party middleware. Middleware is added using app.use(), which is where I add my custom middleware. Once in my middleware I no longer have access to app.use(), how do I call the middleware? Here is some code: Any ideas ? const customerData = (req, res, next) => { try { console.log('Started'); if (process.env.STORE_CUSTOMER_DATA === 'true') { // Here is some custom middleware that doesn't