Skip to content

Commit 00b37ad

Browse files
author
Rajkumar Balakrishnan
committed
Removed HardCoding of the Middleware URL
1 parent 821dac2 commit 00b37ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/signalr-web/SignalRMiddleware/EventApp/src/app/configuration/configuration.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export class ConfigurationService {
99
constructor(private http: HttpClient) { }
1010

1111
loadConfig() {
12-
return this.http.get<IAppInsightsConfiguration>('https://crwebsssrtmrepszkp.azurewebsites.net/api/applicationsetting')
12+
var appsetting_get_url = location.origin + "/api/applicationsetting";
13+
return this.http.get<IAppInsightsConfiguration>(appsetting_get_url)
1314
.toPromise()
1415
.then(result => {
1516
this.configuration = <IAppInsightsConfiguration>(result);

0 commit comments

Comments
 (0)