My delete and put requests are not working but get and post are working fine This is my Repository: https://github.com/Harshh-singh/Ecommerce-demo/blob/master/db.json This is the API: https://my-json-server.typicode.com/Harshh-singh/Ecommerce-demo/blob/master/products/ This is my delete request: const res = await axios.delete("https://my-json-server.typicode.com/Harshh-singh/Ecommerce-demo/blob/master/products/5"); This is my get request: const res = await axios.get("https://my-json-server.typicode.com/Harshh-singh/dummy-ecommerce-api/blob/main/products/"; );
My delete and put requests are not working but get and post are working fine
This is my Repository: https://github.com/Harshh-singh/Ecommerce-demo/blob/master/db.json
This is the API: https://my-json-server.typicode.com/Harshh-singh/Ecommerce-demo/blob/master/products/
This is my delete request: const res = await axios.delete("https://my-json-server.typicode.com/Harshh-singh/Ecommerce-demo/blob/master/products/5");
This is my get request: const res = await axios.get("https://my-json-server.typicode.com/Harshh-singh/dummy-ecommerce-api/blob/main/products/";
);