mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-13 00:35:19 +08:00
* feat(route): add artist route * feat(route): add brand route * chore: merge '/params' route into '/search' route * chore: fix and clean code * chore: sort new entries in alphabetical order. * chore: add new routes in maintainer * chore: sort maintain entries in alphabetical order. * fix: fix event route
16 lines
416 B
JavaScript
16 lines
416 B
JavaScript
const { TITLE, HOST } = require('./const');
|
|
const { fetchBrandInfo } = require('./service');
|
|
|
|
module.exports = async (ctx) => {
|
|
const id = ctx.params.id;
|
|
const brand = await fetchBrandInfo({
|
|
brandId: id,
|
|
});
|
|
ctx.state.data = {
|
|
title: `${TITLE} - ${brand.name}`,
|
|
description: brand.content,
|
|
link: `${HOST}/host/${brand.id}`,
|
|
item: brand.activityList,
|
|
};
|
|
};
|