import { Injectable } from '@angular/core' ; import { HttpClient , HttpParams } from '@angular/common/http' ; import { Observable } from 'rxjs' ; import { ApplicationConfigService } from 'app/core/config/application-config.service' ; @ Injectable ( { providedIn : 'root' } ) export class ActivateService { constructor ( private http , private applicationConfigService ) { } get ( key ) { return this . http . get ( this . applicationConfigService . getEndpointFor ( 'api/activate' ) , { params : new HttpParams ( ) . set ( 'key' , key ) , } ) ; } }