further enhanced error handling + added retries in case of parallel writes
This commit is contained in:
@ -172,12 +172,6 @@ export async function apiDelete(endpoint, body) {
|
||||
return unwrap(await res.json());
|
||||
}
|
||||
|
||||
export function apiDownloadUrl(endpoint) {
|
||||
const token = getToken();
|
||||
const cleanEndpoint = endpoint.replace(/\.php(\?|$)/, '$1');
|
||||
return `${API_BASE}/${cleanEndpoint}${cleanEndpoint.includes('?') ? '&' : '?'}token=${encodeURIComponent(token)}`;
|
||||
}
|
||||
|
||||
/** Authenticated file/download fetch (marks request as website for activity logging). */
|
||||
export async function apiDownloadFetch(url, options = {}) {
|
||||
const token = getToken();
|
||||
|
||||
Reference in New Issue
Block a user