diff options
Diffstat (limited to 'vnext/src/api/index.js')
-rw-r--r-- | vnext/src/api/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js index 00605d87..653360f5 100644 --- a/vnext/src/api/index.js +++ b/vnext/src/api/index.js @@ -56,6 +56,13 @@ export function getMessages(path, params) { }) } +export function post(body, attach) { + let form = new FormData() + form.append('attach', attach) + form.append('body', body) + return client.post('/post', form); +} + export function comment(mid, rid, body, attach) { let form = new FormData(); form.append('mid', mid); |