From 81f376cf62b84e83ce67369562a5b5d333fe810e Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Thu, 11 Jun 2026 13:55:09 -0700 Subject: [PATCH] add avatar endpoints --- go/cmd/orion/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/cmd/orion/main.go b/go/cmd/orion/main.go index 324980c..0c5d1ef 100644 --- a/go/cmd/orion/main.go +++ b/go/cmd/orion/main.go @@ -147,8 +147,10 @@ func main() { // Settings mux.Handle("PATCH /humans/me/settings", withAuth(h.UpdateSettings)) + mux.HANDLE("PUT /humans/me/avatar", withAuth(h.UpdateAvatar)) + mux.HANDLE("DELETE /humans/me/avatar", withAuth(h.DeleteAvatar)) - // Get avatar download url + // Get avatar download url, given objectId mux.Handle("GET /humans/avatar/{id}", withAuth(h.GetObjectDownloadUrl)) // Push notification tokens (per-device)