import { Injectable } from '@angular/core';
import { environment } from 'src/environments/environment';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { ExcelModel } from '../model/excel.model';
import { map, tap } from 'rxjs/operators';

@Injectable({
  providedIn: 'root'
})
export class UploadService {
  url = environment.url
  createStatus: boolean = true
  constructor(private http: HttpClient) { }

  uploadImage(file: any): Observable<any> {
      return this.http.post<any>(this.url + 'files/upload/image', file, { observe: 'response' })
  }
 
}
