aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 02:25:57 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit1b216de47ea5f28e6c4e8a9fb590c0f030f8e647 (patch)
treead7c28c9063a89d2a5cc77e133e66f5cfaa93edc /vnext/src/api
parent5d48f2c8f2390108e356e5edb7b44d86674cb069 (diff)
Fix eslint warnings
Diffstat (limited to 'vnext/src/api')
-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) {