Create scripts/templates

This commit is contained in:
freearhey 2025-01-12 21:35:52 +03:00
parent 6285025a53
commit 3e6fb2b1d3
3 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,16 @@
module.exports = {
site: '<DOMAIN>',
url({ channel, date }) {
return `https://example.com/api/${channel.site_id}/${date.format('YYYY-MM-DD')}`
},
parser({ content }) {
try {
return JSON.parse(content)
} catch {
return []
}
},
channels() {
return []
}
}