src/app/shared/api/rgw-daemon.service.ts
Properties |
|
Methods |
constructor(http: HttpClient)
|
||||||
Defined in src/app/shared/api/rgw-daemon.service.ts:12
|
||||||
Parameters :
|
get | ||||||
get(id: string)
|
||||||
Defined in src/app/shared/api/rgw-daemon.service.ts:20
|
||||||
Parameters :
Returns :
any
|
list |
list()
|
Defined in src/app/shared/api/rgw-daemon.service.ts:16
|
Returns :
any
|
Private url |
Type : string
|
Default value : 'api/rgw/daemon'
|
Defined in src/app/shared/api/rgw-daemon.service.ts:12
|
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { cdEncode } from '../decorators/cd-encode';
import { ApiModule } from './api.module';
@cdEncode
@Injectable({
providedIn: ApiModule
})
export class RgwDaemonService {
private url = 'api/rgw/daemon';
constructor(private http: HttpClient) {}
list() {
return this.http.get(this.url);
}
get(id: string) {
return this.http.get(`${this.url}/${id}`);
}
}