Extract the duplicated user-lookup, provider-selection and size-clamping logic from the v1 GetAvatar and v2 avatarGet handlers into a single avatar.GetAvatarForUsername helper. Both handlers now call it and keep only their transport-specific code (v1: echo size parse + c.Blob, v2: huma input/response). Pure refactor, behavior is unchanged. |
||
|---|---|---|
| .. | ||
| auth | ||
| avatar | ||
| background | ||
| dump | ||
| humaecho5 | ||
| keyvalue | ||
| migration | ||