1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-10 18:02:51 +00:00

server set up with app engine

This commit is contained in:
2016-08-22 00:01:53 -05:00
parent 6dac5aeb06
commit 34b463cd44
18 changed files with 827 additions and 33 deletions

View File

@@ -11,13 +11,13 @@ function initPreview(posts){
//in this case we can send the http request here rather in the react component
export function fetchPreview(){
return (dispatch) => {
return fetch('/metadata.json')
return fetch('/public/metadata.json')
.then(response => response.json())
.then(json => {
dispatch(initPreview(json));
dispatch(initPreview(json));
})
.catch(error => {
console.log(error);
});
}
}
}