comanda.service.ts 504 Bytes
import { Injectable } from '@angular/core';
import { HttpClient } from "@angular/common/http";
import { APP_SETTINGS } from "src/etc/AppSettings";

@Injectable({
  providedIn: 'root'
})
export class ComandaService {
  urlDeboSuite = APP_SETTINGS.apiDeboSuite;

  constructor(
    private http: HttpClient,
  ) { }

  getPendientesEntrega() {
    return this.http.get(`${this.urlDeboSuite}/comandas/pendientes-entrega`);
  }

  getAll() {
    return this.http.get(`${this.urlDeboSuite}/comandas`);
  }

}