fix(admin): missing Zim download API client method

This commit is contained in:
Jake Turner 2026-01-11 14:29:34 -08:00 committed by Jake Turner
parent 2440d23986
commit 3e4985c3c7

View File

@ -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 }>(