Added /public to public endpoints. Updated version
This commit is contained in:
@ -32,7 +32,7 @@ export class CreditsComponent {
|
||||
}
|
||||
|
||||
getVersion() {
|
||||
axios.get(this.developmentStore.getBaseUrl() + 'api/v1/version')
|
||||
axios.get(this.developmentStore.getBaseUrl() + 'api/v1/public/version')
|
||||
.then((response) => {
|
||||
this.version = response.data;
|
||||
})
|
||||
|
@ -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();
|
||||
|
@ -97,7 +97,7 @@ export class UploadComponent {
|
||||
}
|
||||
};
|
||||
|
||||
axios.post(this.developmentStore.getBaseUrl() + 'api/v1/upload', formData, config)
|
||||
axios.post(this.developmentStore.getBaseUrl() + 'api/v1/public/upload', formData, config)
|
||||
.then(response => {
|
||||
console.log('Upload completed successfully!');
|
||||
console.log(response.data);
|
||||
@ -119,7 +119,7 @@ export class UploadComponent {
|
||||
passwordUrlPart = `&password=${fileDetails.password}`;
|
||||
}
|
||||
const downloadUrl = `${baseUrl}download?fileId=${fileId}${passwordUrlPart}`;
|
||||
const deleteUrl = `${baseUrl}api/v1/deletefile?fileId=${fileId}${passwordUrlPart}`;
|
||||
const deleteUrl = `${baseUrl}api/v1/public/deletefile?fileId=${fileId}${passwordUrlPart}`;
|
||||
const statusUrl = `${baseUrl}status?fileId=${fileId}${passwordUrlPart}`;
|
||||
return {
|
||||
downloadUrl,
|
||||
@ -151,7 +151,7 @@ export class UploadComponent {
|
||||
|
||||
axios({
|
||||
method: 'post',
|
||||
url: this.developmentStore.getBaseUrl() + 'api/v1/upload-speed-test',
|
||||
url: this.developmentStore.getBaseUrl() + 'api/v1/public/upload-speed-test',
|
||||
data: uint8View,
|
||||
headers: {
|
||||
'Content-Type': 'application/octet-stream',
|
||||
|
Reference in New Issue
Block a user