Skip to content

Commit

Permalink
adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Dec 24, 2024
1 parent a097baf commit c330bda
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { Injectable } from '@angular/core';
import { Injectable, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';

import { ApplicationConfigService } from 'app/core/config/application-config.service';

@Injectable({ providedIn: 'root' })
export class ConfigurationService {
constructor(private http: HttpClient) {}
private readonly http = inject(HttpClient);
private readonly applicationConfigService = inject(ApplicationConfigService);

get(): Observable<any> {
return this.http.get(SERVER_API_URL + 'management/configprops', { observe: 'body' });
return this.http.get(this.applicationConfigService.getEndpointFor('management/configprops'), { observe: 'body' });
}
}

0 comments on commit c330bda

Please sign in to comment.