Remove mod #11

This commit is contained in:
Kr4ight
2026-04-05 17:16:09 +02:00
parent 167bb33144
commit 7167211f06
4 changed files with 40 additions and 2 deletions
+7
View File
@@ -17,6 +17,13 @@ export async function disableMod(
await invoke("disable_mod", { version, fileName: modId });
}
export async function removeMod(
version: string,
modId: string,
): Promise<void> {
await invoke("remove_mod", { version, fileName: modId });
}
export async function discoverMods(query: string): Promise<Mod[]> {
const url = new URL("https://api.modrinth.com/v2/search");