From 7018e7dde0955bafb726373209f87335a6843d11 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 9 Jun 2024 01:06:22 +0530 Subject: [PATCH] feat: stop recording --- src/api/recording.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/recording.ts b/src/api/recording.ts index cc1aa980..b8247b53 100644 --- a/src/api/recording.ts +++ b/src/api/recording.ts @@ -16,3 +16,11 @@ export const startRecording = async() : Promise => { } }; +export const stopRecording = async (id: string): Promise => { + await axios.get(`http://localhost:8080/record/stop/${id}`) + .then((response : AxiosResponse) => { + }) + .catch((error: any) => { + }); +}; +