added data service

This commit is contained in:
chsakell
2016-09-29 15:50:28 +03:00
parent e6aed79fa9
commit ac613432aa
6 changed files with 158 additions and 9 deletions

View 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/','');
}
}