Create scripts/templates

This commit is contained in:
freearhey committed 2025-01-12 21:35:52 +03:00
1 parent 6285025a53
commit 3e6fb2b1d3
3 files changed
+79

No files matched your search

+16
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 []
}
}