mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
optimize directory structure
This commit is contained in:
19
lib/routes/jike/daily.js
Normal file
19
lib/routes/jike/daily.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const axios = require('../../utils/axios');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const {
|
||||
data: { data },
|
||||
} = await axios.get('https://app.jike.ruguoapp.com/1.0/dailies/list');
|
||||
|
||||
ctx.state.data = {
|
||||
title: '即刻小报',
|
||||
link: 'https://jike.app/',
|
||||
description: '不定期呈现的即刻内容精选',
|
||||
item: data.map((item) => ({
|
||||
title: item.title,
|
||||
description: `<img referrerpolicy="no-referrer" src="${item.picture}">`,
|
||||
pubDate: new Date(item.date).toUTCString(),
|
||||
link: `https://m.okjike.com/dailies/${item.id}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user