En selvhostet webapp for å samle og dele favoritter — filmer, sanger, biler, lego, blomster, bilder, hva som helst. Én Go-binary, SQLite, HTMX. Enkel å drifte.
  • Go 82.2%
  • HTML 12.7%
  • JavaScript 2.5%
  • CSS 1.4%
  • Makefile 0.7%
  • Other 0.5%
Find a file
Ole-Morten Duesund fe4c751289 feat: add JSON REST API under /api/v1/
Phase 6 — JSON API:
- POST /api/v1/auth/login — returns session token
- POST /api/v1/auth/logout
- GET/POST /api/v1/faves — list own faves (paginated), create fave
- GET/PUT/DELETE /api/v1/faves/{id} — get, update, delete fave
- GET /api/v1/tags?q= — search tags
- GET /api/v1/users/{username} — public profile
- GET /api/v1/users/{username}/faves — public faves (paginated)
- GET /api/v1/export/json — export own faves
- POST /api/v1/import — import faves from JSON

All endpoints return JSON. Auth via session cookie (same as web UI).
Privacy-aware: private faves hidden from non-owners.
Respects profile visibility settings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 16:13:23 +02:00
cmd/favoritter feat: add JSON REST API under /api/v1/ 2026-03-29 16:13:23 +02:00
internal feat: add JSON REST API under /api/v1/ 2026-03-29 16:13:23 +02:00
web feat: add Atom feeds and JSON/CSV import/export 2026-03-29 16:11:44 +02:00
.gitignore feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
go.mod feat: add Atom feeds and JSON/CSV import/export 2026-03-29 16:11:44 +02:00
go.sum feat: add Atom feeds and JSON/CSV import/export 2026-03-29 16:11:44 +02:00
LICENSE feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00