From 72cd476c1a83bfdcf265e167256a7e77e7527df2 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Thu, 4 May 2017 08:36:30 -0400 Subject: [PATCH] localhost urls for fetch --- js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/index.js b/js/index.js index c14d3f5..e21b9d1 100644 --- a/js/index.js +++ b/js/index.js @@ -4,6 +4,7 @@ import App from './components/app.js'; import { Provider } from 'react-redux' import store from './store.js' +// fetch('http://localhost:3000/comments').then(function(response){ // fetch('https://stupidcomments.herokuapp.com/comments').then(function(response){ // response.json().then(function(data){ // console.log(data); @@ -11,6 +12,7 @@ import store from './store.js' // }); // fetch( +// 'http://localhost:3000/comments', // 'https://stupidcomments.herokuapp.com/comments', // { // headers: {