From 3e4985c3c771dd5dad31a1080c168cf5fbaa7a09 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sun, 11 Jan 2026 14:29:34 -0800 Subject: [PATCH] fix(admin): missing Zim download API client method --- admin/inertia/lib/api.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 }>(