* feat(route): add 秀动网 (#12489) * docs(maintainer): amend route path * update(route/showstart): remove 'keyword' param in '/event' path, add tags to xml title * refactor(route/showstart): extract service method * update(showstart/route): add '/search' path * update(route/showstart): add title for '/search' path, clean code * Update website/docs/routes/shopping.mdx * Update lib/v2/showstart/radar.js * Update lib/v2/showstart/radar.js * update(route/showstart): add request utils * update(showstart): use web api * update(showstart): add event tags * update(showstart): change pageSize * fix: add a note to crpsign calculation ---------
15 lines
358 B
JavaScript
15 lines
358 B
JavaScript
const { TITLE, HOST } = require('./const');
|
|
const { fetchActivityList } = require('./service');
|
|
|
|
module.exports = async (ctx) => {
|
|
const keyword = ctx.params.keyword;
|
|
const { items } = await fetchActivityList({
|
|
keyword,
|
|
});
|
|
ctx.state.data = {
|
|
title: `${TITLE} - ${keyword}`,
|
|
link: HOST,
|
|
item: items,
|
|
};
|
|
};
|