impresora.service.ts 482 Bytes
import { Injectable } from '@angular/core';
import { appSettings } from 'src/etc/AppSettings';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/internal/Observable';

@Injectable({
  providedIn: 'root'
})
export class ImpresoraService {

  private apiAutoservicio = appSettings.apiUrl;

  constructor(
    private http: HttpClient,
  ) { }

  getAll(): Observable<any> {

    return this.http.get(`${this.apiAutoservicio}/get/impresoras`);
  }

}