Update astro.com.my

This commit is contained in:
freearhey
2023-11-18 09:13:18 +03:00
parent 733b64f064
commit 915fee8f37
3 changed files with 175 additions and 141 deletions

View File

@@ -37,6 +37,20 @@ module.exports = {
}
return programs
},
async channels() {
const data = await axios
.get(`https://contenthub-api.eco.astro.com.my/channel/all.json`)
.then(r => r.data)
.catch(console.log)
return data.response.map(item => {
return {
lang: 'ms',
site_id: item.id,
name: item.title
}
})
}
}