()
| 2 | |
| 3 | |
| 4 | const useRoutes = function() { |
| 5 | fs.readdirSync(__dirname).forEach(file => { |
| 6 | if (file === 'index.js') return; |
| 7 | const router = require(`./${file}`); |
| 8 | this.use(router.routes()); |
| 9 | this.use(router.allowedMethods()); |
| 10 | }) |
| 11 | } |
| 12 | |
| 13 | module.exports = useRoutes; |
nothing calls this directly
no outgoing calls
no test coverage detected