Initial application generated by JHipster-5.8.2
This commit is contained in:
16
src/main/webapp/app/account/activate/activate.service.ts
Normal file
16
src/main/webapp/app/account/activate/activate.service.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user