* 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()
16 lines
370 B
JavaScript
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,
|
|
};
|
|
};
|