mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 22:19:40 +08:00
* feat(route): add 海角社区 * fix: limit to 15 * update lib/v2/hjedd/article.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix: limit to 5
15 lines
385 B
JavaScript
15 lines
385 B
JavaScript
const { rootUrl, ProcessItems } = require('./utils');
|
|
|
|
module.exports = async (ctx) => {
|
|
const currentUrl = rootUrl;
|
|
const apiUrl = `${rootUrl}/api/topic/hot/topics?page=1`;
|
|
|
|
const items = await ProcessItems(apiUrl, ctx.query.limit, ctx.cache.tryGet);
|
|
|
|
ctx.state.data = {
|
|
title: '海角社区 - 热门',
|
|
link: currentUrl,
|
|
item: items,
|
|
};
|
|
};
|