Skip to content

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

@harsh-vankar815

Description

@harsh-vankar815

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions