Files
RSSHub/lib/routes/cnbeta/topics.ts
T
Tony 936e7032d2 fix(route): duplicate-object-key (#15494)
* fix(route): duplicate-object-key

* fix: split routes

* fix: split routes

* fix: typo
2024-05-07 05:29:08 +08:00

24 lines
645 B
TypeScript

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)
:::`,
};