<commit_before>// import axios from 'axios';

export const FETCH_SEARCH_RESULTS = 'fetch_search_results';

// const ROOT_URL = 'http://herokuapp.com/';

export function fetchSearchResults(term, location) {
  // const request = axios.get(`${ROOT_URL}/${term}/${location}`);

  const testJSON = { 
    data: [ 
            { name: '<NAME>', url: 'yelp.com/michaelminna' },
            { name: 'Sushi', url: 'yelp.com/sushi' },
            { name: 'Thai', url: 'yelp.com/thai' },
            { name: 'Chinese', url: 'yelp.com/chinese' } 
          ] 
  };

  return {
    type: FETCH_SEARCH_RESULTS,
    payload: testJSON
  }
}<commit_msg>Add heroku url to axios request<commit_after>import axios from 'axios';

export const FETCH_SEARCH_RESULTS = 'fetch_search_results';

const ROOT_URL = 'https://earlybirdsearch.herokuapp.com/?';

export function fetchSearchResults(term, location) {
  const request = axios.get(`${ROOT_URL}business=${term}&location=${location}`);

  console.log(request);

  // const testJSON = { 
  //   data: [ 
  //           { name: '<NAME>', url: 'yelp.com/michaelminna' },
  //           { name: 'Sushi', url: 'yelp.com/sushi' },
  //           { name: 'Thai', url: 'yelp.com/thai' },
  //           { name: 'Chinese', url: 'yelp.com/chinese' } 
  //         ] 
  // };

  return {
    type: FETCH_SEARCH_RESULTS,
    payload: request
  }
}
{'fraction_non_alphanumeric': 0.17228739002932553, 'fraction_numerical': 0.0, 'mean_word_length': 2.6595174262734584, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1835793', 'n_tokens_mistral': 509, 'n_tokens_neox': 479, 'n_words': 91}