const express = require('express');
const router = express.Router();
router.get('/a', function(req, res) {
res.send('A');
};
router.get('/b', function(req, res) {
res.send('B');
};
router.get('/c', function(req, res) {
res.send('C');
};
// Export module
module.exports = router;
['/a', '/b', '/c']
router.stack.forEach(function(r){
if (r.route && r.route.path){
console.log(r.route.path)
}
})