diff --git a/admin/inertia/lib/api.ts b/admin/inertia/lib/api.ts index 69eb629..d7f284b 100644 --- a/admin/inertia/lib/api.ts +++ b/admin/inertia/lib/api.ts @@ -76,6 +76,16 @@ class API { })() } + async downloadRemoteZimFile(url: string) { + return catchInternal(async () => { + const response = await this.client.post<{ message: string; filename: string; url: string }>( + '/zim/download-remote', + { url } + ) + return response.data + })() + } + async fetchLatestMapCollections(): Promise<{ success: boolean } | undefined> { return catchInternal(async () => { const response = await this.client.post<{ success: boolean }>(