move get requests to routes/index.js file