Commit Graph

4 Commits (d05ffc8cf3ccc43d6ebb42152c497d17e50bc994)

Author SHA1 Message Date
mirivlad 0d0ae92dec fix: hide internal server errors from clients 2026-07-14 22:00:24 +08:00
mirivlad 086bc4ea4a fix: isolate sync operations by user and vault 2026-07-10 03:13:17 +08:00
mirivlad fcf0a07fcc Document and test sync API contract 2026-06-27 12:36:31 +08:00
mirivlad 81756e598f feat: add routes and API handlers
- routes.go: endpoint registration
- handlers_api.go: health, pair, auth test, revoke, me, device register, sync push/pull, blobs
- handlers_auth.go: register, confirm, login, forgot, reset
- middleware.go: requireAuth, requireAdmin, validatePassword
- tokens.go: genDeviceToken
- helpers.go: jsonOK, jsonErr, sha256Hex
- schema.go: add missing tables (email_tokens, revisions, blobs)
- server.go: add SetupRoutes()
2026-06-20 02:05:56 +08:00