Api refactoring #6

Merged
senaduka merged 4 commits from api-refactoring into master 2018-01-15 17:20:10 +01:00
Showing only changes of commit 6859f567a9 - Show all commits

View File

@@ -10,7 +10,7 @@ export const updateSkill = (skill)=>{
let id = (skill._id) ? skill._id : -1;
let url = `http://${BASE_URL}/skill/${id}`
return fetch(url, {
method: 'POST',
method: 'PUT',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'