mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-17 05:11:57 +08:00
be74209c6c
* 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
435 B
JavaScript
16 lines
435 B
JavaScript
const { TITLE, HOST } = require('./const');
|
|
const { fetchPerformerInfo } = require('./service');
|
|
|
|
module.exports = async (ctx) => {
|
|
const id = ctx.params.id;
|
|
const artist = await fetchPerformerInfo({
|
|
performerId: id,
|
|
});
|
|
ctx.state.data = {
|
|
title: `${TITLE} - ${artist.name}`,
|
|
description: artist.content,
|
|
link: `${HOST}/artist/${artist.id}`,
|
|
item: artist.activityList,
|
|
};
|
|
};
|