mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-22 10:41:27 -05:00
Wires five hand-written huma.Register calls for Label CRUD onto the existing /api/v2 group: list, read, create, update, delete. Uses concrete type cast on ReadAll to avoid the generic-any silent-empty trap. The read operation exposes an ETag via a header-tagged output struct field and honours conditional.Params so clients can get 304 Not Modified on subsequent reads. Also closes a prior-phase gap: SetupTokenMiddleware was intended to run on the /api/v2 group (per task B4 of the plan) but was never wired. Attach it now and teach the skipper to consult unauthenticatedAPIPaths so spec + docs remain public.