You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
407 B

import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ServerEndpointService {
currentHost: string;
currentPort: string;
constructor()
{
this.currentHost = "172.16.40.146";
this.currentPort = "3000";
}
testAndSetEndpoint() {
}
getCurrentEndpoint(): string {
return "http://" + this.currentHost + ":" + this.currentPort + "/";
}
}