Files
RSSHub/lib/routes/meteor/boards.ts
T
Tony d585a87daf fix: allow multiple radar rules per route (#14800)
* fix: allow multiple radar rules per route

* fix: github folder

* feat: add namespace to radar target

* docs: fix types url
2024-03-16 03:28:44 +08:00

38 lines
810 B
TypeScript

import { Route } from '@/types';
import cache from '@/utils/cache';
import { baseUrl, getBoards } from './utils';
export const route: Route = {
path: '/boards',
categories: ['bbs'],
example: '/meteor/boards',
parameters: {},
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false,
},
radar: [
{
source: ['meteor.today/'],
},
],
name: '看板列表',
maintainers: ['TonyRL'],
handler,
url: 'meteor.today/',
};
async function handler() {
const items = await getBoards(cache.tryGet);
return {
title: '看板列表',
link: `${baseUrl}/board/all`,
item: items,
};
}