vikunja/pkg/routes/api
kolaente 53d1fa0735 refactor(admin): share user-mutation logic between v1 and v2
The admin set-admin-flag, set-status and delete-user operations were
implemented twice — once in the v1 echo handlers, once in the v2 Huma handlers.
Extract the load/guard/mutate logic into models.SetUserAdminFlag,
models.SetUserStatusAsAdmin and models.DeleteUserAsAdmin so both APIs call the
same code; each handler keeps only its own request binding, validation and
response shape. v1 stays byte-identical on the wire.
2026-06-11 19:32:42 +00:00
..
shared feat(api/v2): add admin actions on /api/v2 2026-06-11 19:32:42 +00:00
v1 refactor(admin): share user-mutation logic between v1 and v2 2026-06-11 19:32:42 +00:00
v2 refactor(admin): share user-mutation logic between v1 and v2 2026-06-11 19:32:42 +00:00