mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
fix(admin): missing Zim download API client method
This commit is contained in:
parent
2440d23986
commit
3e4985c3c7
|
|
@ -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 }>(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user