In this article, we would like to show you HTTP methods in Express.js.
Basic HTTP methods
|GET||The GET method requests a representation of the specified resource. Requests using GET method should only retrieve the data.|
|POST||The POST method requests are most often used to create new resources from the data enclosed in the request.|
|PUT||The PUT method requests are most often used to modify/update existing resources with the data enclosed in the request. If the resource doesn't exist, the PUT method should create one.|
|DELETE||The DELETE method requests that the server delete the specified resource.|
Other routing methods