In this lab, you are going to extend the bookmark web app to add deletion and update functionality.
To start, create the example database by running ./mk-db.sh.
- Modify the detail page to add a link to a delete endpoint.
- Create the delete endpoint, it should redirect to the
/bookmarkspage after success.
- Modify the detail page to add an update link that should go to the page in the next step.
- Add a new template for a "modify bookmark" page, you can base this off of the "create bookmark" page.
- Create endpoints for (a) this template, and (b) to handle the submission of
the "modify bookmark" form.
- When the form is submitted, the bookmark should be modified, and the client should be redirected to the bookmark's detail page.