mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-25 11:51:02 +00:00
12 lines
327 B
TypeScript
12 lines
327 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { HydraApi } from "@main/services";
|
|
|
|
const sendFriendRequest = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
userId: string
|
|
) => {
|
|
return HydraApi.post("/profile/friend-requests", { friendCode: userId });
|
|
};
|
|
|
|
registerEvent("sendFriendRequest", sendFriendRequest);
|