added embed url to api return

This commit is contained in:
bill bittner 2018-07-16 14:57:26 -07:00
parent c4794230d2
commit 573f7f87ca

View file

@ -75,9 +75,10 @@ const claimPublish = ({ body, files, headers, ip, originalUrl, user, tor }, res)
message: 'publish completed successfully',
data : {
name,
claimId: result.claim_id,
url : `${host}/${result.claim_id}/${name}`,
lbryTx : result,
claimId : result.claim_id,
showUrl : `${host}/${result.claim_id}/${name}`,
embedUrl: `${host}/asset/${name}/${result.claim_id}`,
lbryTx : result,
},
});
// record the publish end time and send to google analytics