7 lines
288 B
JavaScript
7 lines
288 B
JavaScript
function generateStreamUrl(claimName, claimId, apiUrl) {
|
|
const prefix = process.env.SDK_API_URL || apiUrl;
|
|
return `${prefix}/content/claims/${claimName}/${claimId}/stream`;
|
|
}
|
|
|
|
// module.exports needed since the web server imports this function
|
|
module.exports = { generateStreamUrl };
|