* fix(route): duplicate-object-key * fix: split routes * fix: split routes * fix: typo
18 lines
468 B
TypeScript
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',
|
|
};
|