diff --git a/lib/radar-rules.js b/lib/radar-rules.js index d979aaa6a..eed546500 100644 --- a/lib/radar-rules.js +++ b/lib/radar-rules.js @@ -2708,17 +2708,6 @@ module.exports = { }, ], }, - 'eventernote.com': { - _name: 'Eventernote', - www: [ - { - title: '声优活动及演唱会', - docs: 'https://docs.rsshub.app/anime.html#eventernote', - source: '/actors/:name/:id/events', - target: '/eventernote/actors/:name/:id', - }, - ], - }, 'instagram.com': { _name: 'Instagram', www: [ diff --git a/lib/router.js b/lib/router.js index b3702eaa8..d7aa5d44c 100644 --- a/lib/router.js +++ b/lib/router.js @@ -3464,9 +3464,6 @@ router.get('/npc/:caty', lazyloadRouteHandler('./routes/npc/index')); // 高科技行业门户 router.get('/ofweek/news', lazyloadRouteHandler('./routes/ofweek/news')); -// eventernote -router.get('/eventernote/actors/:name/:id', lazyloadRouteHandler('./routes/eventernote/actors')); - // 八阕 router.get('/popyard/:caty?', lazyloadRouteHandler('./routes/popyard/index')); diff --git a/lib/routes/everything/eventernote/actors.js b/lib/v2/eventernote/actors.js similarity index 100% rename from lib/routes/everything/eventernote/actors.js rename to lib/v2/eventernote/actors.js diff --git a/lib/v2/eventernote/maintainer.js b/lib/v2/eventernote/maintainer.js new file mode 100644 index 000000000..3335a6b9f --- /dev/null +++ b/lib/v2/eventernote/maintainer.js @@ -0,0 +1,3 @@ +module.exports = { + '/actors/:name/:id': ['KTachibanaM'], +}; diff --git a/lib/v2/eventernote/radar.js b/lib/v2/eventernote/radar.js new file mode 100644 index 000000000..5563d1bf5 --- /dev/null +++ b/lib/v2/eventernote/radar.js @@ -0,0 +1,13 @@ +module.exports = { + 'eventernote.com': { + _name: 'Eventernote', + www: [ + { + title: '声优活动及演唱会', + docs: 'https://docs.rsshub.app/anime.html#eventernote', + source: '/actors/:name/:id/events', + target: '/eventernote/actors/:name/:id', + }, + ], + }, +}; diff --git a/lib/v2/eventernote/router.js b/lib/v2/eventernote/router.js new file mode 100644 index 000000000..bc9c1241c --- /dev/null +++ b/lib/v2/eventernote/router.js @@ -0,0 +1,3 @@ +module.exports = function (router) { + router.get('/actors/:name/:id', require('./actors')); +};