Update README.md

This commit is contained in:
freearhey 2021-03-20 14:00:04 +03:00
parent 14b18ad1c6
commit c08a0ac172
1 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,16 @@ module.exports = {
return `https://example.com/${date.format('YYYY-MM-DD')}/channel/${channel.site_id}.html`
},
/**
* @param {object} channel Data about the requested channel
* @param {string} content The response received after the request at the above url
*
* @return {string} The function should return URL of the channel logo (optional)
*/
logo: function ({ channel, content }) {
return `https://example.com/logos/${channel.site_id}.png`
},
/**
* @param {string} content The response received after the request at the above url
*