feat(route): change wsyu to v2 (#8594)

This commit is contained in:
Derek 2021-11-28 07:31:59 +08:00 committed by GitHub
parent 64469e5886
commit ad2431367c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 3 deletions

View File

@ -2769,9 +2769,6 @@ router.get('/eastmoney/user/:uid', lazyloadRouteHandler('./routes/eastmoney/user
router.get('/ssmh', lazyloadRouteHandler('./routes/ssmh'));
router.get('/ssmh/category/:cid', lazyloadRouteHandler('./routes/ssmh/category'));
// 武昌首义学院
router.get('/wsyu/news/:type?', lazyloadRouteHandler('./routes/universities/wsyu/news'));
// 华南师范大学研究生学院
router.get('/scnuyjs', lazyloadRouteHandler('./routes/universities/scnu/scnuyjs'));

View File

@ -0,0 +1,3 @@
module.exports = {
'/news/:type?': ['Derekmini'],
};

25
lib/v2/wsyu/radar.js Normal file
View File

@ -0,0 +1,25 @@
module.exports = {
'wsyu.edu.cn': {
_name: '新闻中心',
www: [
{
title: '学校要闻',
docs: 'https://docs.rsshub.app/other.html#wu-chang-shou-yi-xue-yuan',
source: '/*',
target: '/wsyu/news/xxyw',
},
{
title: '综合新闻',
docs: 'https://docs.rsshub.app/other.html#wu-chang-shou-yi-xue-yuan',
source: '/*',
target: '/wsyu/news/zhxw',
},
{
title: '媒体聚焦',
docs: 'https://docs.rsshub.app/other.html#wu-chang-shou-yi-xue-yuan',
source: '/*',
target: '/wsyu/news/mtjj',
},
],
},
};

3
lib/v2/wsyu/router.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = function (router) {
router.get('/news/:type?', require('./news'));
};