mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat: 新增新趣集 (#3725)
This commit is contained in:
@@ -2098,6 +2098,10 @@ router.get('/mlog-club/projects', require('./routes/mlog-club/projects'));
|
||||
// Chrome 网上应用店
|
||||
router.get('/chrome/webstore/extensions/:id', require('./routes/chrome/extensions'));
|
||||
|
||||
// 新趣集
|
||||
router.get('/xinquji/today', require('./routes/xinquji/today'));
|
||||
router.get('/xinquji/today/internal', require('./routes/xinquji/internal'));
|
||||
|
||||
// 英中协会
|
||||
router.get('/gbcc/trust', require('./routes/gbcc/trust'));
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got.get('https://xinquji.com/frontend/post/groups?cursor=0&only_internal=1');
|
||||
|
||||
ctx.state.data = {
|
||||
title: '新趣集今日国内最佳',
|
||||
link: 'https://xinquji.com',
|
||||
item: response.data.data.map((item) => ({
|
||||
title: item.name,
|
||||
description: `${item.name} ${item.description}`,
|
||||
link: 'https://xinquji.com/posts/' + item.id + '?utm_source=rsshub',
|
||||
})),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got.get('https://xinquji.com/frontend/post/groups?cursor=0');
|
||||
|
||||
ctx.state.data = {
|
||||
title: '新趣集今日最佳',
|
||||
link: 'https://xinquji.com',
|
||||
item: response.data.data.map((item) => ({
|
||||
title: item.name,
|
||||
description: `${item.name} ${item.description}`,
|
||||
link: 'https://xinquji.com/posts/' + item.id + '?utm_source=rsshub',
|
||||
})),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user