vikunja/pkg/routes/api
kolaente 56a516045b feat(api/v2): add token-check, token-routes and link-share renew endpoints
Port the token introspection helpers and link-share token renewal to
/api/v2:

- GET/POST /token/test both return a plain 200 "ok"; v1's POST 418
  teapot easter egg becomes an ordinary success.
- GET /routes lists the scoped-token routes for both API versions
  (models.GetAPITokenRoutes already merges v1 + v2).
- POST /user/token renews a link-share JWT; user tokens are rejected
  (they must use the refresh-token flow), mirroring v1.

The renew response inlines the token field rather than returning
auth.Token directly, since Huma names schemas by bare type and a
top-level auth.Token body would collide with user.Token.
2026-06-12 07:58:17 +00:00
..
shared refactor(auth): extract shared auth/token business logic for v2 reuse 2026-06-12 07:58:17 +00:00
v1 refactor(auth): extract shared auth/token business logic for v2 reuse 2026-06-12 07:58:17 +00:00
v2 feat(api/v2): add token-check, token-routes and link-share renew endpoints 2026-06-12 07:58:17 +00:00