Files
RSSHub/lib/v2/hafu/news.js
T
文沛东 d5af636a4c feat(route): add HAFU 河南财政金融学院 (#10330)
* feat(route): add HAFU 河南财政金融学院

* fix problems

1. fix route path in all files
2. fix radar target()
3. use camelCase
4. use ctx.cache.tryGet()
5. add "attachments" in description

* 1.run format, 2.add Promise.all()
2022-07-28 23:39:48 +08:00

16 lines
370 B
JavaScript

const parseList = require('./utils');
module.exports = async (ctx) => {
// set default router type
const type = ctx.params.type ?? 'ggtz';
const { link, title, resultList } = await parseList(ctx, type);
ctx.state.data = {
title,
link,
description: '河南财政金融学院 - 公告通知',
item: resultList,
};
};