add avatar endpoints
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user