In Express.js, from an app, you can extract the name of all controllers. Though, the name comes in a strange form (e.g. handle: [AsyncFunction: login]). I cannot find a way to destructure this which could potentially give the filepath.
If this is a dead end, is there any other way to extract this information from from the app?
If you just need the filepath, why not using the available native __dirname (Ecmascript) or import.meta.url (CommonJS) ?