Background: When a user bookmarks a video the page reloads which means if they were watching a video, the video starts over making for a frustrating user experience. We can use JavaScript to make a POST request to /api/v1/bookmarks.
This story should make a fetch call to an internal API.
The app currently uses Stimulus JS and there are already examples of how to make a fetch call to an internal API. Review that code and use it as a template.
Background: When a user bookmarks a video the page reloads which means if they were watching a video, the video starts over making for a frustrating user experience. We can use JavaScript to make a POST request to
/api/v1/bookmarks
.This story should make a
fetch
call to an internal API.The app currently uses Stimulus JS and there are already examples of how to make a
fetch
call to an internal API. Review that code and use it as a template.