vikunja/pkg/routes
kolaente 5579daa452 feat(api/v2): add admin actions on /api/v2
Port the admin action endpoints to the Huma-backed /api/v2:

- GET    /admin/overview            instance counts + license snapshot
- POST   /admin/users               create a user (201)
- PATCH  /admin/users/{id}/admin    promote/demote (*bool, nil = unchanged)
- PATCH  /admin/users/{id}/status   set status (*Status, nil = unchanged)
- DELETE /admin/users/{id}          delete (mode=now|scheduled, 204)
- PATCH  /admin/projects/{id}/owner reassign project owner

All sit behind the existing gateV2AdminRoutes path middleware (admin + license
gate, 404 on failure), so no per-handler permission checks are added. The
hand-registered PATCH routes carry genuine partial semantics, which AutoPatch
does not synthesise. The admin user response reuses the existing
pkg/routes/api/shared package.
2026-06-11 19:32:42 +00:00
..
api feat(api/v2): add admin actions on /api/v2 2026-06-11 19:32:42 +00:00
caldav fix(caldav): return 404 when trying to access a project that cannot exist with CalDAV (#2796) 2026-05-28 08:14:52 +02:00
feeds feat: add Atom feed for user notifications with API token auth (#2758) 2026-05-15 17:25:09 +02:00
middleware test(middleware): lock in array-param order preservation 2026-05-31 12:56:57 +00:00
admin_gate.go feat(middleware): add RequireFeature and RequireSiteAdmin 404 gates 2026-04-20 18:55:06 +00:00
api_tokens.go feat(api/v2): port Label to per-operation Huma handlers 2026-05-31 12:56:57 +00:00
error_handler.go fix(deps): update module github.com/labstack/echo/v4 to v5 (#2131) 2026-01-24 20:38:32 +01:00
feature_gate.go feat(middleware): add RequireFeature and RequireSiteAdmin 404 gates 2026-04-20 18:55:06 +00:00
healthcheck.go fix(deps): update module github.com/labstack/echo/v4 to v5 (#2131) 2026-01-24 20:38:32 +01:00
metrics.go refactor(metrics): count entities on demand with a TTL cache 2026-05-30 13:48:01 +00:00
rate_limit.go fix(deps): update module github.com/labstack/echo/v4 to v5 (#2131) 2026-01-24 20:38:32 +01:00
resolve_project.go fix(api): uppercase project identifier before by-index lookup 2026-05-19 08:53:25 +00:00
routes.go refactor(api/v2): self-register resource routes via init() registry 2026-06-03 13:14:13 +00:00
sentry_middleware.go fix(deps): update module github.com/labstack/echo/v4 to v5 (#2131) 2026-01-24 20:38:32 +01:00
static.go fix: respect allow_icon_changes config on web and desktop 2026-06-01 09:40:37 +00:00
validation.go fix(attachments): extend upload file size to form data (#1577) 2025-09-30 22:23:07 +00:00