RSSHub/lib/routes/theinitium/author.ts

24 lines
697 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('author', ctx);
export const route: Route = {
path: '/author/:type/:language?',
name: '作者',
maintainers: ['AgFlore'],
parameters: {
type: '作者 ID可从作者主页 URL 中获取,如 `https://theinitium.com/author/ninghuilulu`',
language: '语言,简体`zh-hans`,繁体`zh-hant`,缺省为简体',
},
radar: [
{
source: ['theinitium.com/author/:type'],
target: '/author/:type',
},
],
handler,
example: '/theinitium/author/ninghuilulu/zh-hans',
categories: ['new-media'],
};