15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
|
import Config from "./config";
|
||
|
import http from "./http";
|
||
|
|
||
|
export class WebApiClient extends Config {
|
||
|
private httpInstance: http;
|
||
|
constructor({ serverAdress, webapiToken }: { serverAdress: string; webapiToken: string }) {
|
||
|
super({ serverAdress, webapiToken });
|
||
|
this.httpInstance = new http(this);
|
||
|
}
|
||
|
|
||
|
get http() {
|
||
|
return this.httpInstance.http;
|
||
|
}
|
||
|
}
|