File

src/app/shared/api/rgw-daemon.service.ts

Index

Properties
Methods

Constructor

constructor(http: HttpClient)
Parameters :
Name Type Optional
http HttpClient No

Methods

get
get(id: string)
Parameters :
Name Type Optional
id string No
Returns : any
list
list()
Returns : any

Properties

Private url
Type : string
Default value : 'api/rgw/daemon'
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}`);
  }
}

result-matching ""

    No results matching ""