Create API for adding an avatar to a user

This commit is contained in:
Eli Ribble 2026-03-28 18:55:13 -07:00
parent da7549eeda
commit ad90f9c95e
No known key found for this signature in database
7 changed files with 131 additions and 24 deletions

View file

@ -11,6 +11,7 @@ import (
)
type contentURLAPI struct {
Avatar string `json:"avatar"`
Communication string `json:"communication"`
PublicreportMessage string `json:"publicreport_message"`
ReviewTask string `json:"review_task"`
@ -44,6 +45,7 @@ func getUserSelf(ctx context.Context, r *http.Request, user platform.User, query
Self: user,
URLs: contentURLs{
API: contentURLAPI{
Avatar: config.MakeURLNidus("/api/avatar"),
Communication: urls.API.Communication,
PublicreportMessage: urls.API.Publicreport.Message,
ReviewTask: config.MakeURLNidus("/api/review-task"),