mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-29 18:06:31 +08:00
fix(route): fix not unique guid and refactor to v2 (#11712)
This commit is contained in:
+1
-1
@@ -2382,7 +2382,7 @@ router.get('/ifnews/:cid', lazyloadRouteHandler('./routes/ifnews/column'));
|
||||
router.get('/scala/blog/:part?', lazyloadRouteHandler('./routes/scala-blog/scala-blog'));
|
||||
|
||||
// Minecraft Java版游戏更新
|
||||
router.get('/minecraft/version', lazyloadRouteHandler('./routes/minecraft/version'));
|
||||
// router.get('/minecraft/version', lazyloadRouteHandler('./routes/minecraft/version'));
|
||||
|
||||
// 微信更新日志
|
||||
router.get('/weixin/miniprogram/release', lazyloadRouteHandler('./routes/tencent/wechat/miniprogram/framework')); // 基础库更新日志
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
'/version': ['TheresaQWQ'],
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
'minecraft.net': {
|
||||
_name: '我的世界',
|
||||
'.': [
|
||||
{
|
||||
title: 'Java 版游戏更新',
|
||||
docs: 'https://docs.rsshub.app/game.html#minecraft',
|
||||
source: ['/'],
|
||||
target: '/minecraft/version',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = function (router) {
|
||||
router.get('/version', require('./version'));
|
||||
};
|
||||
@@ -28,7 +28,7 @@ module.exports = async (ctx) => {
|
||||
description: `${item.id} ${typeMap[item.type] || ''}更新`,
|
||||
pubDate: new Date(item.releaseTime).toUTCString(),
|
||||
link: `https://www.minecraft.net`,
|
||||
guid: item.url,
|
||||
guid: item.id + item.type,
|
||||
})),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user