ekangularbasetest3
Version:
Authentication service for usermanagement(oidc client)
39 lines (32 loc) • 1.3 kB
text/typescript
//import { RequireInteractiveControl } from "../interface/Interactive Component/RequireInteractiveControl";
//import { BaseService } from "./BaseService";
//import { HttpHeaders, HttpParams } from "@angular/common/http";
//import { Observable } from "rxjs";
//import { catchError } from "rxjs/operators";
//export class BaseServiceOcFilter <T extends RequireInteractiveControl>
//extends BaseService<T>
//{
// httpHeaders = new HttpHeaders()
// .set('Content-Type', 'application/json')
// .set('Authorization', this.authService.getAuthorizationHeaderValue());
// options = {
// headers: this.httpHeaders,
// params:new HttpParams()
// };
// Get (): Observable<T[]> {
// if(this.subrouteurl=="")
// {
// return this.generalhttp.get<T[]>(this.baseu + 'api/'+this.objectname, this.options )
// .pipe(
// catchError(this.handleError('GetBaseService', []))
// );
// }
// else
// {
// return this.generalhttp.get<T[]>(this.baseu + 'api/'+this.subrouteurl+this.objectname, this.options )
// .pipe(
// catchError(this.handleError('GetBaseService', []))
// );
// }
// }
//}