mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 07:12:51 +08:00
17 lines
468 B
JavaScript
17 lines
468 B
JavaScript
const parser = require('@/utils/rss-parser');
|
|
|
|
const { rootUrl, ProcessItems } = require('./utils');
|
|
|
|
module.exports = async (ctx) => {
|
|
const currentUrl = `${rootUrl}/backend.php`;
|
|
|
|
let { items } = await parser.parseURL(currentUrl);
|
|
items = items.filter((item) => item.link.includes('cnbeta'));
|
|
|
|
ctx.state.data = {
|
|
title: 'cnBeta',
|
|
link: currentUrl,
|
|
item: await ProcessItems(items, ctx.query.limit, ctx.cache.tryGet),
|
|
};
|
|
};
|