You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// id = todos idaxios.get(`https://cobacoba-hayepe.herokuapp.com/${id}`).then(result=>console.log(result)).catch(error=>console.log(error));};
ADD NEW TODOS
// just need to pass todo to body// id, isEdit and status is set to defaultaxios.post(`https://cobacoba-hayepe.herokuapp.com`,{todo: your_todo// your todo value}).then(result=>console.log(result)).catch(error=>console.log(error));};
UPDATE TODOS
// have to fill body with your todo and statusaxios.put(`https://cobacoba-hayepe.herokuapp.com`,{todo: your_todo,status: your_todo_status// 0 for false and 1 for true}).then(result=>console.log(result)).catch(error=>console.log(error));};
DELETE TODOS
// id = todos id to be deletedaxios.delete(`https://cobacoba-hayepe.herokuapp.com/${id}`).then(result=>console.log(result)).catch(error=>console.log(error));};
@lighteagle @iqbalmmm @robyafrizal
The text was updated successfully, but these errors were encountered: