I'm facing a very specific use case, where I need to access the mount paths of various express sub apps when iterating over the app object.
Sample code :
const express = require("express")
const app = express()
app.use("/users", new usersRouter())
app.use("/flowers", new flowersRouter())
// Later in code...
app.get("/something", (req, res, next) => checkAppObject(app, next))
function checkAppObject(app, next) {
// Where are stored the "/users" and "/flowers" info ?
console.log(app)
next()
}
I didn't find it anywhere