修复 Readhub 链接 (#776)

#775
This commit is contained in:
Maecenas Li
2018-09-25 11:13:30 +08:00
committed by DIYgod
parent 5cbd189546
commit cacee641e3
+2 -2
View File
@@ -23,14 +23,14 @@ module.exports = async (ctx) => {
const response = await axios({
method: 'get',
url: `https://api.readhub.me/${category}`,
url: `https://api.readhub.cn/${category}`,
});
const data = response.data;
ctx.state.data = {
title: `Readhub-${title}`,
link: 'https://readhub.me',
link: 'https://readhub.cn',
item: data.data.map((item) => ({
title: item.title,
pubDate: new Date(item.publishDate).toUTCString(),