Skip to content

feat: add JSON export for snippet backup - #26

Open
09srivishnu wants to merge 3 commits into
byteofhoney:mainfrom
09srivishnu:main
Open

feat: add JSON export for snippet backup#26
09srivishnu wants to merge 3 commits into
byteofhoney:mainfrom
09srivishnu:main

Conversation

@09srivishnu

Copy link
Copy Markdown

Fixes #6

Changes

  • Added /export endpoint to download all snippets as JSON
  • Added "Export JSON" button on home page
  • Snippets download as stash_snip_backup.json

Files changed

  • app/routes.py (export_snippets function)
  • app/templates/index.html (export button)
  • app/static/style.css (button styling)

Added a route to export all snippets as a downloadable JSON file, converting ObjectId and datetime objects for JSON compatibility.
Added export section with JSON download functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export snippets to JSON

1 participant