mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
10 lines
268 B
JavaScript
10 lines
268 B
JavaScript
export function getContactChannelTopicAssetUrl(server, token, channelId, topicId, assetId) {
|
|
let host = "";
|
|
if (server) {
|
|
host = `https://${server}`;
|
|
}
|
|
|
|
return `${host}/content/channels/${channelId}/topics/${topicId}/assets/${assetId}?contact=${token}`
|
|
}
|
|
|