Commit 08a3aa0f authored by Jie Yuan's avatar Jie Yuan

add shared service

parent e7eda683
import { SharedService } from './shared-service';
describe('SharedService', () => {
it('should create an instance', () => {
expect(new SharedService()).toBeTruthy();
});
});
export class SharedService {
userInfoURL: string;
siteURL: string;
siteShortURL: string;
signInURL: string;
redirectionURL: string;
baseURL: string;
hostsURL: string;
serviceCompURL: string;
address: string;
pagesize: number;
constructor( ) {
this.address = 'https://svmon-dev-test.scc.kit.edu:8443';
this.baseURL = this.address + '/api/';
this.userInfoURL = this.baseURL + 'user/me' ;
this.siteURL = this.baseURL + 'sites';
this.hostsURL = this.baseURL + 'sites/hosts/';
this.siteShortURL = this.baseURL + 'sites/briefreport';
this.signInURL = this.baseURL + 'auth/signin';
this.redirectionURL = this.address + '/login';
this.serviceCompURL = this.baseURL + 'serviceComponent/all/historic/';
this.pagesize = 50;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment