feat(api.js): add patchRecorder() helper for PATCH /recorders/:id
This commit is contained in:
parent
7260b188c5
commit
79d44826fe
1 changed files with 4 additions and 0 deletions
|
|
@ -401,6 +401,10 @@ async function createRecorder(data) {
|
||||||
return api('/recorders', { method: 'POST', body: JSON.stringify(data) });
|
return api('/recorders', { method: 'POST', body: JSON.stringify(data) });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function patchRecorder(id, data) {
|
||||||
|
return api(`/recorders/${id}`, { method: 'PATCH', body: JSON.stringify(data) });
|
||||||
|
}
|
||||||
|
|
||||||
async function startRecorder(id) {
|
async function startRecorder(id) {
|
||||||
return api(`/recorders/${id}/start`, { method: 'POST' });
|
return api(`/recorders/${id}/start`, { method: 'POST' });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue