Files
RSSHub/lib/v2/hjedd/original.js
Ethan Shen 0f4404a808 feat(route): add 海角社区 (#10403)
* 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
2022-08-07 10:23:32 -08:00

15 lines
393 B
JavaScript

const { rootUrl, ProcessItems } = require('./utils');
module.exports = async (ctx) => {
const currentUrl = rootUrl;
const apiUrl = `${rootUrl}/api/topic/node/topics?page=1&type=7`;
const items = await ProcessItems(apiUrl, ctx.query.limit, ctx.cache.tryGet);
ctx.state.data = {
title: '海角社区 - 原创',
link: currentUrl,
item: items,
};
};