refactor config.router.js