mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
18 lines
389 B
TypeScript
18 lines
389 B
TypeScript
import { HydraApi } from "@main/services";
|
|
import { registerEvent } from "../register-event";
|
|
|
|
const putDownloadSource = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
objectIds: string[]
|
|
) => {
|
|
return HydraApi.put<{ fingerprint: string }>(
|
|
"/download-sources",
|
|
{
|
|
objectIds,
|
|
},
|
|
{ needsAuth: false }
|
|
);
|
|
};
|
|
|
|
registerEvent("putDownloadSource", putDownloadSource);
|