RSSHub/lib/v2/huxiu/radar.js

48 lines
1.7 KiB
JavaScript

module.exports = {
'huxiu.com': {
_name: '虎嗅',
'.': [
{
title: '首页资讯',
docs: 'https://docs.rsshub.app/routes/new-media#hu-xiu',
source: ['/article', '/'],
target: '/huxiu/article',
},
{
title: '24小时',
docs: 'https://docs.rsshub.app/routes/new-media#hu-xiu',
source: ['/moment', '/'],
target: '/huxiu/moment',
},
{
title: '标签',
docs: 'https://docs.rsshub.app/routes/new-media#hu-xiu',
source: ['/tags/:id'],
target: (params) => `/huxiu/tag/${params.id.replace('.html', '')}`,
},
{
title: '搜索',
docs: 'https://docs.rsshub.app/routes/new-media#hu-xiu',
},
{
title: '作者',
docs: 'https://docs.rsshub.app/routes/new-media#hu-xiu',
source: ['/member/:id/*', '/'],
target: '/huxiu/author/:id',
},
{
title: '文集',
docs: 'https://docs.rsshub.app/routes/new-media#hu-xiu',
source: ['/collection/:id', '/'],
target: (params) => `/huxiu/collection/${params.id.replace('.html', '')}`,
},
{
title: '简报',
docs: 'https://docs.rsshub.app/routes/new-media#hu-xiu',
source: ['/briefColumn/:id', '/'],
target: (params) => `/huxiu/briefcolumn/${params.id.replace('.html', '')}`,
},
],
},
};