added embed url to api return #529

Merged
bones7242 merged 2 commits from 515-app-thumbnails into master 2018-07-17 20:10:40 +02:00

View file

@ -75,8 +75,9 @@ const claimPublish = ({ body, files, headers, ip, originalUrl, user, tor }, res)
message: 'publish completed successfully', message: 'publish completed successfully',
data : { data : {
name, name,
claimId: result.claim_id, claimId : result.claim_id,
url : `${host}/${result.claim_id}/${name}`, url : `${host}/${result.claim_id}/${name}`,
embedUrl: `${host}/asset/${name}/${result.claim_id}`,
lbryTx : result, lbryTx : result,
}, },
}); });