json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Facing problem when i am trying to send patch, put, and delete request on the json-server

Open harsh-vankar815 opened this issue 6 months ago • 1 comments

i used axios to send requests on the json server, get and post requests are working correctly but when i am trying to send put, patch, and delete request it will gives me an error which is 404 not found. How can I solve this problem, and I think this problem can be inside of the json-server package. Please give me the all ways to solve this problem in my react application. I created json server by using this command "npx create json-server -p 3000 -w json/db.json"

harsh-vankar815 avatar Apr 06 '25 04:04 harsh-vankar815