- client: fix api client export

This commit is contained in:
Ildar Kamalov 2019-09-05 12:12:58 +03:00 committed by Simon Zolin
parent 0e6c795c5b
commit 8c89973365
12 changed files with 15 additions and 31 deletions
client/src/api

View file

@ -1,6 +1,6 @@
import axios from 'axios';
export default class Api {
class Api {
baseUrl = 'control';
async makeRequest(path, method = 'POST', config) {
@ -528,3 +528,6 @@ export default class Api {
return this.makeRequest(path, method);
}
}
const apiClient = new Api();
export default apiClient;