ui init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ClientService {
|
||||
|
||||
constructor(
|
||||
private httpClient: HttpClient
|
||||
) { }
|
||||
|
||||
public getClientInfo(address: string) {
|
||||
return this.httpClient.get(`${environment.API_URL}/api/client/${address}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user