mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
file upload
This commit is contained in:
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
|
||||
import { HttpServiceService } from 'src/app/services/http/http-service.service';
|
||||
import { HttpClient, HttpEvent, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -13,6 +14,7 @@ export class CMAPIAPIService {
|
||||
|
||||
|
||||
getVideoHeader(url: string) {
|
||||
return this.http.head('http://localhost:3001/static/'+url, { observe: 'response' })
|
||||
// return this.http.head('http://localhost:3001/static/'+url, { observe: 'response' })
|
||||
return this.http.head(environment.apiURL+'ObjectServer/StreamFiles?path='+url, { observe: 'response' })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user