Remove port parameter

This commit is contained in:
Eden Kirin
2023-04-21 17:56:35 +02:00
parent fd71fa276c
commit 270f742c95
4 changed files with 10 additions and 14 deletions

View File

@ -36,9 +36,8 @@ const Direction = {
};
class FairHopper {
constructor(host, port) {
constructor(host) {
this.host = host;
this.port = port;
this.defaultHeaders = {
Accept: "application/json",
@ -47,7 +46,7 @@ class FairHopper {
}
formatUrl(path) {
return `${this.host}:${this.port}${path}`;
return `${this.host}${path}`;
}
async ping() {