RSSHub/lib/v2/fortnite/radar.js

17 lines
468 B
JavaScript

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