Move requests out of the api.js file