Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete and put not working #1025

Open
Harshh-singh opened this issue Jul 25, 2024 · 0 comments
Open

delete and put not working #1025

Harshh-singh opened this issue Jul 25, 2024 · 0 comments

Comments

@Harshh-singh
Copy link

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/";
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant