mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59:54 +08:00
11 lines
390 B
JavaScript
11 lines
390 B
JavaScript
const { defaultLanguage, rootUrl, ProcessItems } = require('./utils');
|
|
|
|
module.exports = async (ctx) => {
|
|
const id = ctx.params.id;
|
|
const type = ctx.params.type;
|
|
const language = ctx.params.language ?? defaultLanguage;
|
|
const currentUrl = `${rootUrl}/${language}/${type}.php?list&u=${id}`;
|
|
|
|
ctx.state.data = await ProcessItems(language, currentUrl, ctx.cache.tryGet);
|
|
};
|