aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/api')
-rw-r--r--vnext/src/api/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js
index 2332ed48..e6b1d2ef 100644
--- a/vnext/src/api/index.js
+++ b/vnext/src/api/index.js
@@ -75,6 +75,14 @@ export function comment(mid, rid, body, attach) {
return client.post('/api/comment', form);
}
+export function update(mid, rid, body) {
+ let form = new FormData();
+ form.append('mid', mid);
+ form.append('rid', rid);
+ form.append('body', body);
+ return client.post('/api/update', form);
+}
+
export function updateAvatar(newAvatar) {
let form = new FormData();
form.append('avatar', newAvatar);