mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-08 17:56:17 +02: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> {
|
async fetchLatestMapCollections(): Promise<{ success: boolean } | undefined> {
|
||||||
return catchInternal(async () => {
|
return catchInternal(async () => {
|
||||||
const response = await this.client.post<{ success: boolean }>(
|
const response = await this.client.post<{ success: boolean }>(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user