Branch change commit

This commit is contained in:
Julius Gruber
2019-06-03 15:48:05 +02:00
parent 086579b7f7
commit 73c046974b
3 changed files with 12 additions and 2 deletions

View File

@@ -50,9 +50,12 @@ export class AuthRequestService {
}
public getRequest(method: string, options?: HttpOptions): Observable<any> {
console.log('auth.request getRequest() was called');
return this.halService.getEndpoint(this.linkName).pipe(
filter((href: string) => isNotEmpty(href)),
tap((href) => console.log('auth-request.service getRequest()',href)),
map((endpointURL) => this.getEndpointByMethod(endpointURL, method)),
tap((whatsThis) => console.log('whatsThis: ', whatsThis )),
distinctUntilChanged(),
map((endpointURL: string) => new AuthGetRequest(this.requestService.generateRequestId(), endpointURL, options)),
tap((request: GetRequest) => this.requestService.configure(request, true)),