Skip to content

Commit

Permalink
Merge pull request #765 from DIYgod/master
Browse files Browse the repository at this point in the history
[pull] master from diygod:master
  • Loading branch information
pull[bot] authored Jan 28, 2023
2 parents ec2dd45 + e9d5d35 commit 5fbcbde
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')); // 基础库更新日志
Expand Down
3 changes: 3 additions & 0 deletions lib/v2/minecraft/maintainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'/version': ['TheresaQWQ'],
};
13 changes: 13 additions & 0 deletions lib/v2/minecraft/radar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
'minecraft.net': {
_name: '我的世界',
'.': [
{
title: 'Java 版游戏更新',
docs: 'https://docs.rsshub.app/game.html#minecraft',
source: ['/'],
target: '/minecraft/version',
},
],
},
};
3 changes: 3 additions & 0 deletions lib/v2/minecraft/router.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function (router) {
router.get('/version', require('./version'));
};
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})),
};
};

1 comment on commit 5fbcbde

@vercel
Copy link

@vercel vercel bot commented on 5fbcbde Jan 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.