using configs.js instead of routes.js