Files
RSSHub/lib/routes/wnacg/category.ts
T
Tony 936e7032d2 fix(route): duplicate-object-key (#15494)
* fix(route): duplicate-object-key

* fix: split routes

* fix: split routes

* fix: typo
2024-05-07 05:29:08 +08:00

18 lines
468 B
TypeScript

import { Route } from '@/types';
import { handler } from './common';
export const route: Route = {
name: '分类更新',
maintainers: ['Gandum2077'],
path: '/category/:cid',
example: '/wnacg/category/6',
radar: [
{
source: ['wnacg.com/*'],
target: (_, url) => `/wnacg/category/${new URL(url).pathname.match(/albums-index-cate-(\d+)\.html$/)[1]}`,
},
],
handler,
url: 'wnacg.com/albums.html',
};