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?
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?
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