Express Router and Routes
The HTTP Verb used to access it.
Route | HTTP Verb | Description |
/api/bears |
GET
|
Get all the bears. |
/api/bears |
POST
|
Create a bear. |
/api/bears/:bear_id |
GET
|
Get a single bear. |
/api/bears/:bear_id |
PUT
|
Update a bear with new info. |
/api/bears/:bear_id |
DELETE
|
Delete a bear. |
No comments:
Post a Comment