Numerous Bug Fixes
Some checks failed
Automated Container Build / build-and-push (push) Failing after 8s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 8s
This commit is contained in:
parent
02eefdac0e
commit
267d429122
959 changed files with 145571 additions and 221 deletions
|
|
@ -176,7 +176,7 @@ class ApiClient {
|
|||
}
|
||||
|
||||
async deleteFile(path: string) {
|
||||
const res = await this.request(`/api/files/${encodeURIComponent(path)}`, {
|
||||
const res = await this.request(`/api/files/?path=${encodeURIComponent(path)}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
return res.json();
|
||||
|
|
@ -214,6 +214,11 @@ class ApiClient {
|
|||
return this.accessToken ? `${url}&token=${this.accessToken}` : url;
|
||||
}
|
||||
|
||||
getDownloadFolderUrl(path: string) {
|
||||
const url = `${API_BASE}/api/files/download-folder?path=${encodeURIComponent(path)}`;
|
||||
return this.accessToken ? `${url}&token=${this.accessToken}` : url;
|
||||
}
|
||||
|
||||
getThumbnailUrl(checksum: string) {
|
||||
const url = `${API_BASE}/api/files/thumbnail/${encodeURIComponent(checksum)}`;
|
||||
return this.accessToken ? `${url}?token=${this.accessToken}` : url;
|
||||
|
|
|
|||
Reference in a new issue