aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_services/experiments.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_services/experiments.service.ts')
-rw-r--r--frontend/src/app/_services/experiments.service.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/app/_services/experiments.service.ts b/frontend/src/app/_services/experiments.service.ts
index 0d0d372b..29569fca 100644
--- a/frontend/src/app/_services/experiments.service.ts
+++ b/frontend/src/app/_services/experiments.service.ts
@@ -1,7 +1,7 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
-import { Configuration } from '../configuration.service';
+import { Configuration } from './configuration.service';
import Experiment from '../_data/Experiment';
import { AuthService } from './auth.service';
@@ -19,4 +19,8 @@ export class ExperimentsService {
getMyExperiments(): Observable<Experiment[]> {
return this.http.get<Experiment[]>(`${Configuration.settings.apiURL}/experiment/getmyexperiments`, { headers: this.authService.authHeader() });
}
+
+ updateExperiment(experiment: Experiment): Observable<Experiment> {
+ return this.http.put<Experiment>(`${Configuration.settings.apiURL}/experiment/` + experiment._id, experiment, { headers: this.authService.authHeader() });
+ }
}