0

When we write a express server we can set the routes using GET, POST, DELETE, PUT.

There is a real difference between then? Or is just a "best practice" thing?

Danilo Cunha
  • 1,048
  • 2
  • 13
  • 22
  • 2
    Does this answer your question? [What's the difference between a POST and a PUT HTTP REQUEST?](https://stackoverflow.com/questions/107390/whats-the-difference-between-a-post-and-a-put-http-request) – Adiii Jul 10 '20 at 02:29

1 Answers1

0

Yes, there are real differences. You should follow the HTTP spec when using Express or any other web server.

GET requests a representation of the specified resource

DELETE deletes the specified resource

POST sends data to the server

Nick McCurdy
  • 17,658
  • 5
  • 50
  • 82