localhost urls for fetch

master
Matt Huntington 9 years ago
parent 1cc585ba99
commit 72cd476c1a

@ -4,6 +4,7 @@ import App from './components/app.js';
import { Provider } from 'react-redux' import { Provider } from 'react-redux'
import store from './store.js' import store from './store.js'
// fetch('http://localhost:3000/comments').then(function(response){
// fetch('https://stupidcomments.herokuapp.com/comments').then(function(response){ // fetch('https://stupidcomments.herokuapp.com/comments').then(function(response){
// response.json().then(function(data){ // response.json().then(function(data){
// console.log(data); // console.log(data);
@ -11,6 +12,7 @@ import store from './store.js'
// }); // });
// fetch( // fetch(
// 'http://localhost:3000/comments',
// 'https://stupidcomments.herokuapp.com/comments', // 'https://stupidcomments.herokuapp.com/comments',
// { // {
// headers: { // headers: {

Loading…
Cancel
Save