Initial values loaded.

This commit is contained in:
Drew Larson
2017-05-23 19:30:44 -06:00
parent 5151d089a1
commit 6b5be33495
7 changed files with 96 additions and 95 deletions
@@ -21,6 +21,20 @@ const Api = {
.then(data => data)
.catch((error) => {
console.log('request failed', error);
throw error;
});
},
saveBike(id) {
return fetch(`/api/v1/bike/${id}`, {
credentials: 'same-origin',
method: 'PUT',
})
.then(checkStatus)
.then(parseJson)
.then(data => data)
.catch((error) => {
console.log('request failed', error);
throw error;
});
},
};