Files
RSSHub/lib/v2/baijing/radar.js
T
Ethan Shen 2f77dafb04 feat(route): add 白鲸出海资讯 (#10367)
* feat(route): add 白鲸出海资讯

* fix: use https
2022-08-03 21:34:30 +08:00

23 lines
742 B
JavaScript

module.exports = {
'baijingapp.com': {
_name: '白鲸出海',
'.': [
{
title: '最新',
docs: 'https://docs.rsshub.app/new-media.html#bai-jing-chu-hai',
source: ['/article', '/'],
target: '/baijing',
},
{
title: '资讯',
docs: 'https://docs.rsshub.app/new-media.html#bai-jing-chu-hai',
source: ['/article', '/'],
target: (params, url) => {
const matches = String(new URL(url)).match(/\/article\/type-(\d+)/);
return `/baijing${matches ? `/${matches[1]}` : ''}`;
},
},
],
},
};