Skip to content

Commit

Permalink
feat: add heartbeat api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstark committed Apr 15, 2024
1 parent 0458bcb commit f987605
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,8 @@ export const API = {
{ method: "DELETE" }
)
),
heartbeat: ({ sessionId }: TDeleteAudioSessionOptions): Promise<string> =>
handleFetchRequest<string>(
fetch(`${API_URL}heartbeat/${sessionId}`, { method: "GET" })
),
};

0 comments on commit f987605

Please sign in to comment.