frontend api refactoring
This commit is contained in:
@@ -10,7 +10,7 @@ export const updateSkill = (skill)=>{
|
|||||||
let id = (skill._id) ? skill._id : -1;
|
let id = (skill._id) ? skill._id : -1;
|
||||||
let url = `http://${BASE_URL}/skill/${id}`
|
let url = `http://${BASE_URL}/skill/${id}`
|
||||||
return fetch(url, {
|
return fetch(url, {
|
||||||
method: 'POST',
|
method: 'PUT',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
|
|||||||
Reference in New Issue
Block a user