Vendor app Client: Maiora
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
591 B

  1. import { Injectable } from '@angular/core';
  2. import { HttpClient, HttpHeaders } from '@angular/common/http';
  3. @Injectable({
  4. providedIn: 'root'
  5. })
  6. export class OutletService {
  7. constructor(
  8. private http: HttpClient
  9. ) { }
  10. addOutletSchedules(schedules: any) {
  11. const httpOptions = {
  12. headers: new HttpHeaders({
  13. 'Access-Control-Allow-Origin': '*',
  14. 'Content-Type': 'application/json',
  15. 'Authorization': 'Bearer ' + localStorage.token
  16. })
  17. };
  18. return this.http.post(URL + "/api/maioraservice/outlet/v1/create", httpOptions).toPromise()
  19. }
  20. }