import request from 'superagent';

class API {
  sidebarItems(callback) {
    request
      .get('/all_dates')
      .end((err, response) => {
        callback(response);
      })
  }
}

export default API;

Add class to fetch data from the server backend
Add class to fetch data from the server backend