Express List Endpoints
![bitHound Overall Score](https://www.bithound.io/github/AlbertoFdzM/express-list-endpoints/badges/score.svg)
![NPM](https://nodei.co/npm/express-list-endpoints.png)
Express endpoint parser to retrieve a list of the passed router with the set verbs.
Example of use
router.route('/')
.all(function(req, res) {
})
.get(function(req, res) {
})
.post(function(req, res) {
});
router.route('/about')
.get(function(req, res) {
});
console.log(listEndpoints(router.stack));
Arguments
app
or router
instance
Your router instance (router
) or your app instance (app
).
Note: Pay attention that before call this script the router or app must have the endpoints registered due to detect them.
license
MIT