moving the routing to app.js