diff --git a/src/api/recording.ts b/src/api/recording.ts index 89ae4dfe..c399ca1b 100644 --- a/src/api/recording.ts +++ b/src/api/recording.ts @@ -37,3 +37,17 @@ export const getActiveBrowserId = async(): Promise => { } }; +export const interpretCurrentRecording = async(): Promise => { + try { + const response = await axios.get('http://localhost:8080/record/interpret'); + if (response.status === 200) { + return true; + } else { + throw new Error('Couldn\'t interpret current recording'); + } + } catch(error: any) { + console.log(error); + return false; + } +}; +