RSSHub/lib/routes/cnbeta/topics.ts

24 lines
645 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Route } from '@/types';
import { handler } from './common';
export const route: Route = {
name: '主题',
path: ['/topics/:id'],
example: '/cnbeta/topics/453',
maintainers: ['cczhong11', 'nczitzk'],
parameters: {
id: '主题 id可在对应主题页的 URL 中找到',
},
radar: [
{
source: ['cnbeta.com.tw/topics/:id'],
target: (params) => `/cnbeta/topics/${params.id.replace('.htm', '')}`,
},
],
handler,
url: 'cnbeta.com.tw',
description: `::: tip
完整的主题列表参见 [主题列表](https://www.cnbeta.com.tw/topics.htm)
:::`,
};