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:
Jia Chen
2024-03-22 12:09:14 +08:00
committed by GitHub
parent e04c79b208
commit e7fb4e8fd0
2 changed files with 12 additions and 3 deletions
+11 -2
View File
@@ -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,
};
+1 -1
View File
@@ -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: '语言',
},