From eecaa1d0c8f2c280b08350a31169bba2c95b1a86 Mon Sep 17 00:00:00 2001 From: Martin <901824+martinstark@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:42:31 +0200 Subject: [PATCH] feat: add heartbeat api endpoint --- src/api/api.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/api.ts b/src/api/api.ts index 1c84ab21..6a7007ff 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -131,4 +131,8 @@ export const API = { { method: "DELETE" } ) ), + heartbeat: ({ sessionId }: TDeleteAudioSessionOptions): Promise => + handleFetchRequest( + fetch(`${API_URL}heartbeat/${sessionId}`, { method: "GET" }) + ), };