1
0
Files
hs.hsadmin.ng/src/main/webapp/app/account/activate/activate.service.ts
2019-04-01 13:14:56 +02:00

17 lines
486 B
TypeScript

import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
import { Observable } from 'rxjs';
import { SERVER_API_URL } from 'app/app.constants';
@Injectable({ providedIn: 'root' })
export class ActivateService {
constructor(private http: HttpClient) {}
get(key: string): Observable<any> {
return this.http.get(SERVER_API_URL + 'api/activate', {
params: new HttpParams().set('key', key)
});
}
}