Remove port parameter
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user