Replace resumablejs with ngx-uploadx
Some checks failed
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit
This commit is contained in:
@@ -6,13 +6,14 @@ import { AppConfig } from "../shared/app.config";
|
||||
|
||||
@Injectable()
|
||||
export class UserService {
|
||||
private _apiEndPoint: string;
|
||||
|
||||
constructor(public httpClient: HttpClient, public appConfig: AppConfig) {
|
||||
this._apiEndPoint = "";//appConfig.getConfig("apiEndPoint");
|
||||
}
|
||||
|
||||
ApiEndpoint() {
|
||||
return this.appConfig.getConfig("apiEndPoint");
|
||||
}
|
||||
|
||||
getCurrentUser(): Observable<IUser> {
|
||||
return this.httpClient.get<IUser>(`${this._apiEndPoint}/api/v1/currentuser`);
|
||||
return this.httpClient.get<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user