ecurt / the-spice-is-right

0 stars 0 forks source link

Added myCookbook and cookbook endpoints #58

Closed ecurt closed 2 weeks ago

ecurt commented 2 weeks ago

The backend for viewing all of a user's cookbooks is myCookbook, and the endpoint for viewing a specific cookbook is /cookbook. The cookbook endpoint uses get, but has a query parameter cookbookId that is set to the cookbook id so that it knows which cookbook to display. It authorizes the user first to make sure they are only viewing cookbooks that they own. The cookbook endpoint uses the recipe_results template, so it does not need a frontend, but we do still need to create a simple myCookbooks template for viewing the list of your cookbooks.