blob: 558620fc9f3a4bcb6227ce50fe5b0483aa93d3ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}
}
|