Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
fix(zim): adicionar método deleteZimFile ausente no API client
LuisMIguelFurlanettoSousa7ab5e6582621
diff --git a/admin/inertia/lib/api.ts b/admin/inertia/lib/api.tsindex 0295a4fe..026d44db 100644--- a/admin/inertia/lib/api.ts+++ b/admin/inertia/lib/api.ts@@ -518,6 +518,13 @@ class API {})()}+ async deleteZimFile(filename: string) {+ return catchInternal(async () => {+ const response = await this.client.delete<{ message: string }>(`/zim/${filename}`)+ return response.data+ })()+ }+async listZimFiles() {return catchInternal(async () => {return await this.client.get<ListZimFilesResponse>('/zim/list')