Skip to content

feat(export): add JSON export for all snippets - #13

Open
KTQ0912 wants to merge 1 commit into
byteofhoney:mainfrom
KTQ0912:fix/issue-6-export-json
Open

feat(export): add JSON export for all snippets#13
KTQ0912 wants to merge 1 commit into
byteofhoney:mainfrom
KTQ0912:fix/issue-6-export-json

Conversation

@KTQ0912

@KTQ0912 KTQ0912 commented Jul 25, 2026

Copy link
Copy Markdown

Fixes #6

What changed

  • Add GET /export route that returns all snippets as a downloadable JSON file.
  • Export filename is timestamped: stashsnip-export-YYYYMMDD-HHMMSS.json.
  • Add an Export JSON link in the top nav.

Notes

  • Keeps schema aligned with existing snippet fields: title, language, code, description, tags.
  • Minimal behavior change; new route is additive.

- New /export route downloads all snippets as timestamped JSON
- Adds Export JSON link in nav
Fixes byteofhoney#6
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