mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
video merge
This commit is contained in:
@@ -23,7 +23,7 @@ export class MiddlewareServiceService {
|
||||
window["MiddlewareServiceService"] = this
|
||||
}
|
||||
|
||||
refreshToken(refreshToken: string){
|
||||
refreshToken(refreshToken: string) {
|
||||
const data = {
|
||||
refreshToken: refreshToken
|
||||
}
|
||||
@@ -186,15 +186,13 @@ export class MiddlewareServiceService {
|
||||
const headers = new HttpHeaders();
|
||||
headers.set('Authorization', 'Bearer ' + SessionStore.user.Authorization);
|
||||
|
||||
const geturl = 'http://localhost:3001/FileHub';
|
||||
// const geturl = environment.apiURL + 'Tasks/DelegateTask';
|
||||
// const geturl = environment.apiPCURL + 'FileContent';
|
||||
// const geturl = 'http://localhost:3001/FileHub';
|
||||
const geturl = environment.apiPCURL + 'FileContent/UploadFile';
|
||||
|
||||
let options = {
|
||||
headers: headers
|
||||
};
|
||||
|
||||
|
||||
const formData = new FormData();
|
||||
|
||||
formData.append("blobFile", blobFile);
|
||||
@@ -208,6 +206,15 @@ export class MiddlewareServiceService {
|
||||
return this.http.post<IuploadFileLK>(`${geturl}`, formData, options)
|
||||
}
|
||||
|
||||
CMAPIRequestUpload() {
|
||||
const geturl = environment.apiPCURL + 'FileContent/RequestUpload';
|
||||
return this.http.get<string>(`${geturl}`)
|
||||
}
|
||||
|
||||
CMAPIUploadStatus() {
|
||||
const geturl = environment.apiPCURL + 'FileContent/UploadStatus';
|
||||
return this.http.get<string>(`${geturl}`)
|
||||
}
|
||||
|
||||
|
||||
tryToReachTheServer() {
|
||||
|
||||
Reference in New Issue
Block a user