ff-admin-webapi-client/src/index.ts

15 lines
369 B
TypeScript
Raw Normal View History

2025-01-28 15:39:30 +01:00
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;
}
}