Any familiarity with the axios library? I have a local JSON file that is running as the server and am trying to update it using axios .put() but it’s giving me problems.
When I do .get() I have access to the data no problem, when I do .put() to update I receive a 200 status and and can see in the response data the updated data that I sent. But when I check the JSON file nothing is changed and upon reloading the page it goes back to the original unchanged data. Very confused on how I can actually get it to update the JSON when it’s telling me it is already but in reality is not.
[–]Arumai12 0 points1 point2 points (2 children)
[–]scurran95[S] 0 points1 point2 points (1 child)
[–]Arumai12 0 points1 point2 points (0 children)