added embed url to api return #529
1 changed files with 4 additions and 3 deletions
|
@ -75,9 +75,10 @@ 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}`,
|
||||||
lbryTx : result,
|
embedUrl: `${host}/asset/${name}/${result.claim_id}`,
|
||||||
|
lbryTx : result,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// record the publish end time and send to google analytics
|
// record the publish end time and send to google analytics
|
||||||
|
|
Loading…
Reference in a new issue