Routing determines how an application responds to a client request at a specific URI (path) and HTTP method. Express provides methods corresponding to every HTTP verb: app.get(), app.post(), app.put(), app.patch(), and app.delete().
Common HTTP Verbs
- GET: Retrieve data without modifying anything.
- POST: Create a new resource.
- PUT / PATCH: Replace or partially update an existing resource.
- DELETE: Remove a resource.
ADVERTISEMENT