blob: ab469ae16f9ba5a5ab6a9c7d3c8b72e92dc806ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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';
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));
}
}
|