// 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: 'Michael Mina', 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
  }
}

@@ -1,11 +1,8 @@
-// 
 import a
@@ -82,19 +82,16 @@
 ults';%0A%0A
-// 
 const RO
@@ -108,11 +108,28 @@
 http
+s
 ://
+earlybirdsearch.
 hero
@@ -138,16 +138,17 @@
 app.com/
+?
 ';%0A%0Aexpo
@@ -201,11 +201,8 @@
  %7B%0A 
- //
  con
@@ -240,34 +240,79 @@
 URL%7D
-/$%7Bterm%7D/$%7Blocation%7D%60);%0A%0A 
+business=$%7Bterm%7D&location=$%7Blocation%7D%60);%0A%0A  console.log(request);%0A%0A  //
  con
@@ -329,16 +329,19 @@
 N = %7B %0A 
+ //
    data:
@@ -345,16 +345,19 @@
 ta: %5B %0A 
+ //
         
@@ -412,24 +412,27 @@
 lminna' %7D,%0A 
+ //
            %7B
@@ -469,24 +469,27 @@
 /sushi' %7D,%0A 
+ //
            %7B
@@ -528,16 +528,19 @@
 ai' %7D,%0A 
+ //
         
@@ -589,16 +589,19 @@
 se' %7D %0A 
+ //
         
@@ -605,16 +605,19 @@
     %5D %0A 
+ //
  %7D;%0A%0A  r
@@ -669,23 +669,22 @@
 ayload: 
-testJSON
+request
 %0A  %7D%0A%7D%0A

Add heroku url to axios request