21debf626d
feat(backend): implement category stack
...
Add category repo, service, handler, and wire all /categories endpoints
including list, create, get, update, delete, and list-tags.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 21:50:57 +03:00
1766dc2b3c
feat(backend): implement auth handler, middleware, and router
...
domain/context.go: extend WithUser/UserFromContext with session ID
handler/response.go: respondJSON/respondError with domain→HTTP status
mapping (404/403/401/409/400/415/500)
handler/middleware.go: Bearer JWT extraction, ParseAccessToken,
domain.WithUser injection; aborts with 401 JSON on failure
handler/auth_handler.go: Login, Refresh, Logout, ListSessions,
TerminateSession
handler/router.go: /health, /api/v1/auth routes; login and refresh
are public, session routes protected by AuthMiddleware
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 00:43:41 +03:00