backend: update recording URL format in getRecordingUrl endpoint

This commit is contained in:
juancarmore 2025-06-10 16:25:51 +02:00
parent 09516d3042
commit d017e13d63

View File

@ -239,7 +239,7 @@ export const getRecordingUrl = async (req: Request, res: Response) => {
}
const secret = privateAccess ? recordingSecrets.privateAccessSecret : recordingSecrets.publicAccessSecret;
const recordingUrl = `${req.protocol}://${req.get('host')}${INTERNAL_CONFIG.API_BASE_PATH_V1}/recordings/${recordingId}/media?secret=${secret}`;
const recordingUrl = `${req.protocol}://${req.get('host')}/recording/${recordingId}?secret=${secret}`;
return res.status(200).json({ url: recordingUrl });
} catch (error) {