* fix: allow multiple radar rules per route * fix: github folder * feat: add namespace to radar target * docs: fix types url
23 lines
404 B
TypeScript
23 lines
404 B
TypeScript
import { Route } from '@/types';
|
|
import fetchFeed from './utils';
|
|
|
|
export const route: Route = {
|
|
path: '/',
|
|
radar: [
|
|
{
|
|
source: ['ruancan.com/'],
|
|
target: '',
|
|
},
|
|
],
|
|
name: 'Unknown',
|
|
maintainers: [],
|
|
handler,
|
|
url: 'ruancan.com/',
|
|
};
|
|
|
|
async function handler(ctx) {
|
|
const currentUrl = '';
|
|
|
|
return await fetchFeed(ctx, currentUrl);
|
|
}
|