diff options
Diffstat (limited to 'frontend/src/app/_services/predictors.service.ts')
-rw-r--r-- | frontend/src/app/_services/predictors.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/app/_services/predictors.service.ts b/frontend/src/app/_services/predictors.service.ts index 844cd706..909d1a49 100644 --- a/frontend/src/app/_services/predictors.service.ts +++ b/frontend/src/app/_services/predictors.service.ts @@ -1,7 +1,7 @@ import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; -import { API_SETTINGS } from 'src/config'; +import API_SETTINGS from '../../config.json'; import Predictor from '../_data/Predictor'; import { Column } from '../_pages/predict/predict.component'; import { AuthService } from './auth.service'; @@ -18,11 +18,11 @@ export class PredictorsService { getPublicPredictors(): Observable<Predictor[]> { return this.http.get<Predictor[]>(`${API_SETTINGS.apiURL}/predictor/publicpredictors`, { headers: this.authService.authHeader() }); } - getPredictor(id : String): Observable<Predictor> { - return this.http.get<Predictor>(`${API_SETTINGS.apiURL}/predictor/getpredictor/`+ id, { headers: this.authService.authHeader() }); + getPredictor(id: String): Observable<Predictor> { + return this.http.get<Predictor>(`${API_SETTINGS.apiURL}/predictor/getpredictor/` + id, { headers: this.authService.authHeader() }); } - usePredictor(predictor: Predictor, inputs : Column[]) { + usePredictor(predictor: Predictor, inputs: Column[]) { return this.http.post(`${API_SETTINGS.apiURL}/predictor/usepredictor/` + predictor._id, inputs, { headers: this.authService.authHeader() }); } |