diff options
author | Vitaly Takmazov | 2019-06-11 14:56:08 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | ee5f3a4a78cd9a4cc2ed259ce599db95765f24ce (patch) | |
tree | 7e0243d335af5b93c49d5d29ce80988bbed8b220 /vnext/src/api/index.js | |
parent | be48cd1cccacc0cf5b0f6c84455ab54a6a7bf672 (diff) |
Message editing
Diffstat (limited to 'vnext/src/api/index.js')
-rw-r--r-- | vnext/src/api/index.js | 8 |
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); |