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

add shared service

parent e7eda683
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
import { SharedService } from './shared-service';

describe('SharedService', () => {
  it('should create an instance', () => {
    expect(new SharedService()).toBeTruthy();
  });
});
+31 −0
Original line number Diff line number Diff line
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;
    }



}