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
403 B
24 lines
403 B
import { Injectable } from '@angular/core';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ServerEndpointService {
|
|
|
|
currentHost: string;
|
|
currentPort: string;
|
|
|
|
constructor()
|
|
{
|
|
this.currentHost = "localhost";
|
|
this.currentPort = "3000";
|
|
}
|
|
|
|
testAndSetEndpoint() {
|
|
|
|
}
|
|
|
|
getCurrentEndpoint(): string {
|
|
return "http://" + this.currentHost + ":" + this.currentPort + "/";
|
|
}
|
|
}
|
|
|