This PR implements the /bookmarks endpoint in the server/app.py file. The endpoint fetches the bookmarks from the database and returns them as JSON data. Additionally, the endpoint is now accessible only to authenticated users.
Summary of Changes
Modified the /bookmarks route handler in server/app.py to fetch the bookmarks from the database and return them as JSON data.
Added the @login_required decorator to the /bookmarks route handler to ensure that it is accessible only to authenticated users.
Please review and merge this PR. Thank you!
Fixes #21.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/bookmarks-endpoint_2
🎉 Latest improvements to Sweep:
Use Sweep Map to break large issues into smaller sub-issues, perfect for large tasks like "Sweep (map): migrate from React class components to function components"
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We released a demo of our chunker, where you can find the corresponding blog and code.
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR implements the
/bookmarks
endpoint in theserver/app.py
file. The endpoint fetches the bookmarks from the database and returns them as JSON data. Additionally, the endpoint is now accessible only to authenticated users.Summary of Changes
/bookmarks
route handler inserver/app.py
to fetch the bookmarks from the database and return them as JSON data.@login_required
decorator to the/bookmarks
route handler to ensure that it is accessible only to authenticated users.Please review and merge this PR. Thank you!
Fixes #21.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: