+ client: get profile info

This commit is contained in:
Ildar Kamalov
2019-10-23 10:31:54 +03:00
committed by Simon Zolin
parent 0ede2b13c9
commit 2a2647dc3f
4 changed files with 39 additions and 3 deletions

View File

@@ -525,6 +525,14 @@ class Api {
};
return this.makeRequest(path, method, config);
}
// Profile
GET_PROFILE = { path: 'profile', method: 'GET' };
getProfile() {
const { path, method } = this.GET_PROFILE;
return this.makeRequest(path, method);
}
}
const apiClient = new Api();