mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
fix(route): fix 36kr route & kaopu.news doc desc (#14884)
* fix(route): fix 36kr route & kaopu.news doc desc * chore(route): Update lib/routes/36kr/index.ts ---------
This commit is contained in:
@@ -17,10 +17,19 @@ const shortcuts = {
|
||||
};
|
||||
|
||||
export const route: Route = {
|
||||
path: '/{.*}?',
|
||||
path: '/:category/:subCategory?/:keyword?',
|
||||
categories: ['new-media'],
|
||||
example: '/36kr/newsflashes',
|
||||
parameters: {
|
||||
category: '分类,必填项',
|
||||
subCategory: '子分类,选填项,目的是为了兼容老逻辑',
|
||||
keyword: '关键词,选填项,仅搜索文章/快讯时有效',
|
||||
},
|
||||
name: '资讯, 快讯, 用户文章, 主题文章, 专题文章, 搜索文章, 搜索快讯',
|
||||
maintainers: ['nczitzk'],
|
||||
maintainers: ['nczitzk', 'fashioncj'],
|
||||
description: `| 最新资讯频道 | 快讯 | 推荐资讯|生活|房产|职场|搜索文章|搜索快讯|
|
||||
| ------- | -------- | -------- | -------- | -------- | --------| -------- | -------- |
|
||||
| news | newsflashes | recommend | life | estate | workplace | search/articles/关键词 | search/articles/关键词 |`,
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { parseDate } from '@/utils/parse-date';
|
||||
export const route: Route = {
|
||||
path: '/news/:language?',
|
||||
categories: ['new-media'],
|
||||
example: '/news/zh-hans, /news/zh-hant',
|
||||
example: '/news/zh-hans',
|
||||
parameters: {
|
||||
language: '语言',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user