- Index Route (Show all Creatures)
- Show Route (Show the selected Creature)
- /new Route (Return a form to create a new creature)
- Delete Route redirects to the Index route
- Update Route redirects to the updated creature's Show page
- Create Route redirects to the newly created creature's Show page
- Remember to add the
{raw: true}
option when you want the raw json data to render into a view page instead of the whole sequelize object. - HTML forms only support POST and GET, you need to add a method override query string to implement PUT and DELETE
Reimplement the dinos api that sends JSON data instead of a rendered EJS view.
Mount those routes to /api/dinos