aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/api/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js
index 74280ed5..c9ae5688 100644
--- a/vnext/src/api/index.js
+++ b/vnext/src/api/index.js
@@ -12,7 +12,7 @@ client.interceptors.request.use(config => {
});
}
return config;
-})
+});
export function me(username = '', password = '') {
return new Promise((resolve, reject) => {
@@ -27,12 +27,12 @@ export function me(username = '', password = '') {
}).catch(reason => {
localStorage.clear();
reject(reason);
- })
+ });
});
}
export function getChats() {
- return client.get('/groups_pms')
+ return client.get('/groups_pms');
}
export function getChat(userName) {
@@ -40,20 +40,20 @@ export function getChat(userName) {
params: {
'uname': userName
}
- })
+ });
}
export function pm(userName, body) {
let form = new FormData();
form.set('uname', userName);
form.set('body', body);
- return client.post('/pm', form)
+ return client.post('/pm', form);
}
export function getMessages(path, params) {
return client.get(path, {
params: params
- })
+ });
}
export function post(body, attach) {