feat(route): change nsfc to v2 (#8595)
This commit is contained in:
parent
7d858bc03d
commit
64469e5886
|
|
@ -626,15 +626,6 @@
|
|||
{ title: '支持的快递公司列表', docs: 'https://docs.rsshub.app/other.html#kuai-di-100', source: '/', target: '/kuaidi100/company' },
|
||||
],
|
||||
},
|
||||
'nsfc.gov.cn': {
|
||||
_name: '国家自然科学基金委员会',
|
||||
www: [
|
||||
{ title: '基金要闻', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/jjyw' },
|
||||
{ title: '通知公告', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/tzgg' },
|
||||
{ title: '资助成果', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/zzcg' },
|
||||
{ title: '科普快讯', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/kpkx' },
|
||||
],
|
||||
},
|
||||
'japanpost.jp': {
|
||||
_name: '日本郵便',
|
||||
'trackings.post': [
|
||||
|
|
|
|||
|
|
@ -2674,9 +2674,6 @@ router.get('/lagou/jobs/:position/:city', lazyloadRouteHandler('./routes/lagou/j
|
|||
router.get('/yzu/home/:type', lazyloadRouteHandler('./routes/universities/yzu/home'));
|
||||
router.get('/yzu/yjszs/:type', lazyloadRouteHandler('./routes/universities/yzu/yjszs'));
|
||||
|
||||
// 国家自然科学基金委员会
|
||||
router.get('/nsfc/news/:type?', lazyloadRouteHandler('./routes/nsfc/news'));
|
||||
|
||||
// 德国新闻社卫健新闻
|
||||
router.get('/krankenkassen', lazyloadRouteHandler('./routes/krankenkassen'));
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
'/news/:type?': ['Derekmini'],
|
||||
};
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
module.exports = {
|
||||
'nsfc.gov.cn': {
|
||||
_name: '国自然基金委',
|
||||
www: [
|
||||
{
|
||||
title: '基金要闻',
|
||||
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
|
||||
source: '/*',
|
||||
target: '/nsfc/news/jjyw',
|
||||
},
|
||||
{
|
||||
title: '通知公告',
|
||||
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
|
||||
source: '/*',
|
||||
target: '/nsfc/news/tzgg',
|
||||
},
|
||||
{
|
||||
title: '资助成果',
|
||||
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
|
||||
source: '/*',
|
||||
target: '/nsfc/news/zzcg',
|
||||
},
|
||||
{
|
||||
title: '科普快讯',
|
||||
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
|
||||
source: '/*',
|
||||
target: '/nsfc/news/kpkx',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = function (router) {
|
||||
router.get('/news/:type?', require('./news'));
|
||||
};
|
||||
Loading…
Reference in New Issue