headscale/hscontrol/api/v1
Kristoffer Dalby 96d736ec23 api/v1: build responses from view accessors, not AsStruct
Serialize node, user and pre-auth-key responses through the NodeView,
UserView and PreAuthKeyView accessors instead of AsStruct(), which clones
the whole record on every read. Document the convention in AGENTS.md.
2026-06-21 04:17:03 +02:00
..
api.go api/v1: add code-first Huma implementation of the v1 API 2026-06-19 15:21:00 +02:00
apikeys.go api/v1: add code-first Huma implementation of the v1 API 2026-06-19 15:21:00 +02:00
auth.go api/v1: add code-first Huma implementation of the v1 API 2026-06-19 15:21:00 +02:00
errors.go api/v1: add code-first Huma implementation of the v1 API 2026-06-19 15:21:00 +02:00
health.go api/v1: add code-first Huma implementation of the v1 API 2026-06-19 15:21:00 +02:00
nodes.go api/v1: build responses from view accessors, not AsStruct 2026-06-21 04:17:03 +02:00
policy.go api/v1: add code-first Huma implementation of the v1 API 2026-06-19 15:21:00 +02:00
preauthkeys.go api/v1: build responses from view accessors, not AsStruct 2026-06-21 04:17:03 +02:00
tags.go api/v1: add code-first Huma implementation of the v1 API 2026-06-19 15:21:00 +02:00
types.go api/v1: build responses from view accessors, not AsStruct 2026-06-21 04:17:03 +02:00
users.go api/v1: build responses from view accessors, not AsStruct 2026-06-21 04:17:03 +02:00