Files
RSSHub/lib/v2/fortnite/radar.js
T
lyqluis 64a5a7db1a feat(route): add /fortnite/news (#12289)
* feat(route): add /fortnite/news

* fix: update format & add en doc
2023-04-13 14:22:42 +08:00

17 lines
466 B
JavaScript

module.exports = {
'fortnite.com': {
_name: 'Fortnite',
'.': [
{
title: 'News',
docs: 'https://docs.rsshub.app/game.html#fortnite',
source: ['/news'],
target: (_, url) => {
const lang = url.match(/\?(lang=\w*)/);
return lang ? `/fortnite/news/${lang[1]}` : `/fortnite/news`;
},
},
],
},
};