Express Routes
The route paths define the endpoints at which requests can be made.
Depending on the HTTP method used, the Express router will call the corresponding method handler function.
CRUD Operations
The following table shows the HTTP methods and their corresponding Express router methods:
HTTP Method | Express Router Method | CRUD Operation | Description |
---|---|---|---|
GET |
| Read | Retrieve information |
POST |
| Create | Send information to the server |
PUT |
| Create | Create a new resource |
PATCH |
| Update | Update an existing resource |
DELETE |
| Delete | Delete an existing resource |
Route Paths
The route paths define the endpoints at which requests can be made.
Route paths can be strings, string patterns, or regular expressions.
Resource Naming
This project follows the industry standard of naming conventions, which you may find here.