vikunja/pkg/routes/api/v1/admin
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
..
overview.go refactor(admin): extract shared admin overview, user-create and user-view helpers 2026-06-11 19:32:42 +00:00
projects.go feat(admin): add users/projects list endpoints and is_admin patch 2026-04-20 18:55:06 +00:00
user_create.go refactor(admin): extract shared admin overview, user-create and user-view helpers 2026-06-11 19:32:42 +00:00
users.go refactor(admin): extract shared admin overview, user-create and user-view helpers 2026-06-11 19:32:42 +00:00
users_admin.go refactor(admin): share user-mutation logic between v1 and v2 2026-06-11 19:32:42 +00:00
users_mgmt.go refactor(admin): share user-mutation logic between v1 and v2 2026-06-11 19:32:42 +00:00