Files
RSSHub/lib/routes/theinitium/channel.ts
T
Peng GuanwenandTony cf4f2d21a8 fix(route/theinitium): Fix metadata & token expiration (#15444)
* fix(route/theinitium): Fix metadata & token expiration

* Update full.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: split theinitium

---------
2024-05-03 05:23:38 +08:00

29 lines
973 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 { processFeed } from './utils';
const handler = (ctx) => processFeed('channel', ctx);
export const route: Route = {
path: '/channel/:type?/:language?',
name: '专题・栏目',
maintainers: ['prnake'],
parameters: {
type: '栏目,缺省为最新',
language: '语言,简体`zh-hans`,繁体`zh-hant`,缺省为简体',
},
radar: [
{
source: ['theinitium.com/channel/:type'],
target: '/channel/:type',
},
],
handler,
example: '/theinitium/channel/latest/zh-hans',
categories: ['new-media'],
description: `Type 栏目:
| 最新 | 深度 | What’s New | 广场 | 科技 | 风物 | 特约 | ... |
| ------ | ------- | ---------- | ----------------- | ---------- | ------- | -------- | --- |
| latest | feature | news-brief | notes-and-letters | technology | culture | pick_up | ... |`,
};