mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-23 01:37:59 +00:00
added data service
This commit is contained in:
19
app/shared/config.service.ts
Normal file
19
app/shared/config.service.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable()
|
||||
export class ConfigService {
|
||||
|
||||
_apiURI : string;
|
||||
|
||||
constructor() {
|
||||
this._apiURI = 'http://localhost:5000/api/';
|
||||
}
|
||||
|
||||
getApiURI() {
|
||||
return this._apiURI;
|
||||
}
|
||||
|
||||
getApiHost() {
|
||||
return this._apiURI.replace('api/','');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user