add avatar endpoints

This commit is contained in:
Arjun Patel
2026-06-11 13:55:09 -07:00
parent 78c5151f3b
commit 81f376cf62
+3 -1
View File
@@ -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)