Commit Graph

2 Commits (d05ffc8cf3ccc43d6ebb42152c497d17e50bc994)

Author SHA1 Message Date
mirivlad 0d0ae92dec fix: hide internal server errors from clients 2026-07-14 22:00:24 +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