feat: add duplicate recording api
This commit is contained in:
@@ -35,6 +35,7 @@ export const updateRecording = async (id: string, data: { name?: string; limit?:
|
|||||||
|
|
||||||
export const duplicateRecording = async (id: string, targetUrl: string): Promise<any> => {
|
export const duplicateRecording = async (id: string, targetUrl: string): Promise<any> => {
|
||||||
try {
|
try {
|
||||||
|
console.log("duplicating");
|
||||||
const response = await axios.post(`${apiUrl}/storage/recordings/${id}/duplicate`, {
|
const response = await axios.post(`${apiUrl}/storage/recordings/${id}/duplicate`, {
|
||||||
targetUrl,
|
targetUrl,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user