Good afternoon! I got an issue. Currently i am learning rest API and the way it works, written little code that simply takes data from your todo lists and puts it on the screen, but when i came to editing data, like changing todo status from pending to complete and backwards, i had faced an issue. every single time i try to put something, post just simply self-removes for no reason. i had tried variety of ways to solve this, even removed delete method from my api, but it still doesnt work. i would be very grateful if you would be able to help me out with it!
Shortly: When i use PUT method, it removes whole post instead of changing data in it. Thanks in advance!
https://codepen.io/bcehaxep/pen/qBJGqYa - here is link to my code. JS file is custom.js, css file is API.js. I would be really grateful if somehow you would be able to help me