| Name | URL | Request Type | Description | MongoDB Method | Sequelize Method |
|---|---|---|---|---|---|
| INDEX | /posts | GET | Display list of all posts | Post.find() | Post.findAll() |
| NEW | /posts/new | GET | Display form to make new post | n/a | n/a |
| CREATE | /posts | POST | Add new post to database | Post.create() | Post.create() |
| SHOW | /posts/:id | GET | Show info about specific post | Post.findById() | Post.findById() |
| EDIT | /posts/:id/edit | GET | Show edit form for specific post | Post.findById() | Post.findById() |
| UPDATE | /posts/:id | PUT | Update specific post & reroute to edited post | Post.findByIdAndUpdate() | Post.update() |
| DESTROY | /posts:id | DELETE | Delete specific post & reroute | Post.findByIdAndRemove() | Post.destroy() |
created by @niamurrell