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:
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user