mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-05 07:22:54 +03:00
- client: fix api client export
This commit is contained in:
parent
0e6c795c5b
commit
8c89973365
12 changed files with 15 additions and 31 deletions
client/src/api
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue