|
- import { Injectable } from '@angular/core';
- import { HttpClient, HttpHeaders } from '@angular/common/http';
-
- @Injectable({
- providedIn: 'root'
- })
- export class OutletService {
-
- constructor(
- private http: HttpClient
- ) { }
-
- addOutletSchedules(schedules: any) {
- const httpOptions = {
- headers: new HttpHeaders({
- 'Access-Control-Allow-Origin': '*',
- 'Content-Type': 'application/json',
- 'Authorization': 'Bearer ' + localStorage.token
- })
- };
-
- return this.http.post(URL + "/api/maioraservice/outlet/v1/create", httpOptions).toPromise()
- }
- }
|