From fb4c7d288c52cac2ddaf8ec6a32257c7c49d09b7 Mon Sep 17 00:00:00 2001 From: Jesse Lucas Date: Sun, 15 Mar 2020 12:42:55 -0400 Subject: [PATCH] update system config url and http options --- src/app/system-config.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/system-config.service.ts b/src/app/system-config.service.ts index 26644b211..effe64fe6 100644 --- a/src/app/system-config.service.ts +++ b/src/app/system-config.service.ts @@ -20,16 +20,16 @@ export class SystemConfigService { private devices: Device[]; private foldersSubject: Subject = new Subject(); private devicesSubject: Subject = new Subject(); - private systemConfigUrl = environment.production ? apiURL + '/rest/system/config' : 'api/config'; + private systemConfigUrl = environment.production ? apiURL + 'rest/system/config' : 'api/config'; private httpOptions; - constructor(private http: HttpClient, private cookieService: CookieService) { } - - ngOnInit(): void { + constructor(private http: HttpClient, private cookieService: CookieService) { this.httpOptions = { headers: new HttpHeaders(this.cookieService.getCSRFHeader()) }; } + ngOnInit(): void { } + getSystemConfig(): Observable { return this.http .get(this.systemConfigUrl, this.httpOptions)