Added /public to public endpoints. Updated version

This commit is contained in:
2024-04-01 22:32:41 +02:00
parent 80610b774a
commit da5abba5b9
5 changed files with 9 additions and 9 deletions

View File

@ -99,7 +99,7 @@ export class DownloadComponent {
axios({
method: 'get',
url: this.developmentStore.getBaseUrl() + 'api/v1/speed-test',
url: this.developmentStore.getBaseUrl() + 'api/v1/public/speed-test',
responseType: 'arraybuffer',
})
.then(response => {
@ -119,7 +119,7 @@ export class DownloadComponent {
private getDownloadInfo() {
axios({
method: 'get',
url: this.developmentStore.getBaseUrl() + 'api/v1/download-info?fileId=' + this.fileId,
url: this.developmentStore.getBaseUrl() + 'api/v1/public/download-info?fileId=' + this.fileId,
responseType: 'json',
})
.then(response => {
@ -138,7 +138,7 @@ export class DownloadComponent {
this.fileDownloadStarted = true;
axios({
method: 'get',
url: this.developmentStore.getBaseUrl() + 'api/v1/download?fileId=' + this.fileId + '&password=' + this.filePassword,
url: this.developmentStore.getBaseUrl() + 'api/v1/public/download?fileId=' + this.fileId + '&password=' + this.filePassword,
responseType: 'arraybuffer',
onDownloadProgress: (progressEvent) => {
const endTime = new Date().getTime();