Skip to content

Commit

Permalink
修复 Readhub 链接 (DIYgod#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maecenas authored and DIYgod committed Sep 25, 2018
1 parent 5cbd189 commit cacee64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/readhub/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit cacee64

Please sign in to comment.