cmd/wasmcloudd: return handler on update

This commit is contained in:
Cadey Ratio 2019-12-13 11:50:36 +00:00
parent 50c4184efa
commit 0f09e314b2
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ func updateHandler(w http.ResponseWriter, r *http.Request, u *User) {
http.Error(w, "database error, contact support", http.StatusInternalServerError) http.Error(w, "database error, contact support", http.StatusInternalServerError)
return return
} }
json.NewEncoder(w).Encode(hdlr)
} }
func uploadHandler(hdlr internal.Handler) (string, error) { func uploadHandler(hdlr internal.Handler) (string, error) {