diff options
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/services/setting.service.ts')
-rw-r--r-- | sdc-workflow-designer-ui/src/app/services/setting.service.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/setting.service.ts b/sdc-workflow-designer-ui/src/app/services/setting.service.ts new file mode 100644 index 00000000..558620fc --- /dev/null +++ b/sdc-workflow-designer-ui/src/app/services/setting.service.ts @@ -0,0 +1,21 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; + +import { HttpService } from '../util/http.service'; + +@Injectable() +export class SettingService { + + constructor(private http: HttpService) { } + + public getSetting(): Observable<any> { + const options: any = { + headers: { + Accept: 'application/json', + } + }; + // return this.http.get('assets/global-setting.json', options); + return this.http.get('/api/setting', options); + } + +} |