Closed ScottMaxson closed 8 years ago
@ScottMaxson that’s a promise signature. You’ll need to add a then
like
router.getRoutes().then((routes) => {
console.log(routes)
})
OK - thanks blush I guess one needs to read the core module and understand how the "app" object wraps other modules' functions?
The object returned by app.get('router').getRoutes() isn't expected.
This simple nxus module:
displays the following text on the page:
whereas we'd expect to see something like
[{method: "get", route: "/"} ...]