summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/app/api
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole3/frontend/src/app/api')
-rw-r--r--admin/WebConsole3/frontend/src/app/api/netboot.service.ts44
1 files changed, 24 insertions, 20 deletions
diff --git a/admin/WebConsole3/frontend/src/app/api/netboot.service.ts b/admin/WebConsole3/frontend/src/app/api/netboot.service.ts
index d4ad0c94..ab469ae1 100644
--- a/admin/WebConsole3/frontend/src/app/api/netboot.service.ts
+++ b/admin/WebConsole3/frontend/src/app/api/netboot.service.ts
@@ -1,20 +1,24 @@
-import { Injectable } from '@angular/core';
-import { HttpClient} from '@angular/common/http';
-
-import { environment } from '../../environments/environment';
-import { Netboot } from "../model/netboot";
-import { NetbootSerializer } from "../serializer/netboot.serializer";
-
-import {ResourceService} from "globunet-angular/core/providers/api/resource.service";
-
-
-@Injectable({
- providedIn: 'root'
-})
-export class NetbootService extends ResourceService<Netboot> {
-
- constructor(http: HttpClient){
- super(http, environment.API_URL,"netboots", new NetbootSerializer());
- }
-
-}
+import {Injectable} from '@angular/core';
+import {HttpClient} from '@angular/common/http';
+
+import {environment} from '../../environments/environment';
+import {Netboot} from '../model/netboot';
+import {NetbootSerializer} from '../serializer/netboot.serializer';
+
+import {ResourceService} from 'globunet-angular/core/providers/api/resource.service';
+import {Observable} from 'rxjs';
+
+
+@Injectable({
+ providedIn: 'root'
+})
+export class NetbootService extends ResourceService<Netboot> {
+
+ constructor(http: HttpClient) {
+ super(http, environment.API_URL, 'netboots', new NetbootSerializer());
+ }
+
+ updateFiles(assignedNetboots: {}): Observable<any> {
+ return this.httpClient.post(this.url + '/clients', JSON.stringify(assignedNetboots));
+ }
+}